[sr-dev] git:master: db_flatstore: update timestamp for kamailio specific rpc rotate

Daniel-Constantin Mierla miconda at gmail.com
Mon Dec 16 09:29:11 CET 2013


Module: sip-router
Branch: master
Commit: b15aefa31e45f1ad6a45b64905f9fae24e0f790e
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b15aefa31e45f1ad6a45b64905f9fae24e0f790e

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Mon Dec 16 09:26:03 2013 +0100

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

---

 modules/db_flatstore/flat_rpc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/db_flatstore/flat_rpc.c b/modules/db_flatstore/flat_rpc.c
index 2fe0d0f..5145d83 100644
--- a/modules/db_flatstore/flat_rpc.c
+++ b/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);
 }
 




More information about the sr-dev mailing list