svn commit: samba r19069 - in
branches/SAMBA_4_0/source/lib/ldb/ldb_tdb: .
idra at samba.org
idra at samba.org
Wed Oct 4 19:08:37 GMT 2006
Author: idra
Date: 2006-10-04 19:08:36 +0000 (Wed, 04 Oct 2006)
New Revision: 19069
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19069
Log:
The sequence number is a 64 bit unsigned integer
Well spotted Volker
Modified:
branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_cache.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_cache.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_cache.c 2006-10-04 19:03:29 UTC (rev 19068)
+++ branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_cache.c 2006-10-04 19:08:36 UTC (rev 19069)
@@ -318,7 +318,7 @@
struct ltdb_private *ltdb = module->private_data;
struct ldb_dn *baseinfo_dn = NULL;
struct ldb_dn *indexlist_dn = NULL;
- double seq;
+ uint64_t seq;
if (ltdb->cache == NULL) {
ltdb->cache = talloc_zero(ltdb, struct ltdb_cache);
@@ -356,7 +356,7 @@
/* if the current internal sequence number is the same as the one
in the database then assume the rest of the cache is OK */
- seq = ldb_msg_find_attr_as_double(ltdb->cache->baseinfo, LTDB_SEQUENCE_NUMBER, 0);
+ seq = ldb_msg_find_attr_as_uint64(ltdb->cache->baseinfo, LTDB_SEQUENCE_NUMBER, 0);
if (seq == ltdb->sequence_number) {
goto done;
}
More information about the samba-cvs
mailing list