Browse code

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 authored on 16/12/2013 08:26:03
Showing 1 changed files
... ...
@@ -32,6 +32,7 @@
32 32
 
33 33
 #include "flat_rpc.h"
34 34
 #include "flatstore_mod.h"
35
+#include "km_flatstore_mod.h"
35 36
 
36 37
 #include <time.h>
37 38
 
... ...
@@ -43,6 +44,7 @@
43 44
  */
44 45
 static void rotate(rpc_t* rpc, void* c)
45 46
 {
47
+	*km_flat_rotate = time(0);
46 48
 	*flat_rotate = time(0);
47 49
 }
48 50