[sr-dev] git:kamailio_3.0: presence(k): set properly db updated flag

Daniel-Constantin Mierla miconda at gmail.com
Thu Aug 12 11:34:38 CEST 2010


Module: sip-router
Branch: kamailio_3.0
Commit: 1463ba2c10179608c72332c4fac96d0e3f4c14d1
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1463ba2c10179608c72332c4fac96d0e3f4c14d1

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Fri Jul 30 23:26:35 2010 +0200

presence(k): set properly db updated flag

- patch by Marius-Ovidiu Bucur
(cherry picked from commit b31c53abf1c3bafafb59d3fa6456135f1da6e6c9)

---

 modules_k/presence/hash.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules_k/presence/hash.c b/modules_k/presence/hash.c
index 874fe03..bc31b87 100644
--- a/modules_k/presence/hash.c
+++ b/modules_k/presence/hash.c
@@ -261,7 +261,7 @@ int insert_shtable(shtable_t htable,unsigned int hash_code, subs_t* subs)
 	}
 
 	new_rec->expires+= (int)time(NULL);
-	if(fallback2db==0)
+	if(fallback2db!=0)
 		new_rec->db_flag= INSERTDB_FLAG;
 	else
 		new_rec->db_flag= NO_UPDATEDB_FLAG;




More information about the sr-dev mailing list