summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-10-04 19:08:36 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:20:33 -0500
commit118dae99def28d8dcda0dca1b3b4c987f0b38cde (patch)
treef006fa130b83fcc906bf368eaa5ce71807c2f4d0 /source4/lib
parent19df9091358092adf2f6df48783a4f91bc573a5f (diff)
downloadsamba-118dae99def28d8dcda0dca1b3b4c987f0b38cde.tar.gz
samba-118dae99def28d8dcda0dca1b3b4c987f0b38cde.tar.bz2
samba-118dae99def28d8dcda0dca1b3b4c987f0b38cde.zip
r19069: The sequence number is a 64 bit unsigned integer
Well spotted Volker (This used to be commit f4239ef5983cfc06fd5cab42448564faed676944)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_cache.c b/source4/lib/ldb/ldb_tdb/ldb_cache.c
index d6d66dd37f..a6092c45f9 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_cache.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_cache.c
@@ -318,7 +318,7 @@ int ltdb_cache_load(struct ldb_module *module)
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 @@ int ltdb_cache_load(struct ldb_module *module)
/* 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;
}