浏览代码

presence(k): set properly db updated flag

- patch by Marius-Ovidiu Bucur
(cherry picked from commit b31c53abf1c3bafafb59d3fa6456135f1da6e6c9)
Daniel-Constantin Mierla 15 年之前
父节点
当前提交
1463ba2c10
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules_k/presence/hash.c

+ 1 - 1
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);
 	new_rec->expires+= (int)time(NULL);
-	if(fallback2db==0)
+	if(fallback2db!=0)
 		new_rec->db_flag= INSERTDB_FLAG;
 		new_rec->db_flag= INSERTDB_FLAG;
 	else
 	else
 		new_rec->db_flag= NO_UPDATEDB_FLAG;
 		new_rec->db_flag= NO_UPDATEDB_FLAG;