Jelajahi Sumber

db_flatstore: update timestamp for kamailio specific rpc rotate

- do also in 'rotate' command, not only in 'k_rotate'
- from a patch by Abdelkader Allam

(cherry picked from commit b15aefa31e45f1ad6a45b64905f9fae24e0f790e)
(cherry picked from commit d75bc3b69151a9d0391309e6bb51784f3b6b9a83)
Daniel-Constantin Mierla 11 tahun lalu
induk
melakukan
aee55e1bdc
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      modules/db_flatstore/flat_rpc.c

+ 2 - 0
modules/db_flatstore/flat_rpc.c

@@ -32,6 +32,7 @@
 
 #include "flat_rpc.h"
 #include "flatstore_mod.h"
+#include "km_flatstore_mod.h"
 
 #include <time.h>
 
@@ -43,6 +44,7 @@
  */
 static void rotate(rpc_t* rpc, void* c)
 {
+	*km_flat_rotate = time(0);
 	*flat_rotate = time(0);
 }