r19071: Backport to SAMBA_3_0 as well
authorSimo Sorce <idra@samba.org>
Wed, 4 Oct 2006 19:12:01 +0000 (19:12 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:15:08 +0000 (12:15 -0500)
(This used to be commit df148a5def06956ecd8392d259f1c408c62100fa)

source3/lib/ldb/ldb_tdb/ldb_cache.c

index d6d66dd37fd83e206d16bcf32c728bfbafb4840c..a6092c45f93c0d0b49009593c0b5a41e48e4ec2b 100644 (file)
@@ -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;
        }