ldb:tdb backend - cache - remove unused "last_attribute" structure member
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Sun, 10 Apr 2011 17:41:34 +0000 (19:41 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Fri, 29 Apr 2011 18:07:27 +0000 (20:07 +0200)
Reviewed-by: abartlet
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Apr 29 20:07:27 CEST 2011 on sn-devel-104

source4/lib/ldb/ldb_tdb/ldb_cache.c
source4/lib/ldb/ldb_tdb/ldb_tdb.h

index 697f7427a44e8b1aa188f1592e6a56aba60c28d7..e54ceaaa98aba53a75868e0ccefbe2f72810a6ce 100644 (file)
@@ -345,9 +345,6 @@ int ltdb_cache_load(struct ldb_module *module)
                ltdb->check_base = false;
        }
 
-       talloc_free(ltdb->cache->last_attribute.name);
-       memset(&ltdb->cache->last_attribute, 0, sizeof(ltdb->cache->last_attribute));
-
        talloc_free(ltdb->cache->indexlist);
        ltdb_attributes_unload(module); /* calls internally "talloc_free" */
 
index 33313b00da9472a3ba596fd7dd59c4dc2711c0df..3d793d27df0b9a4d67f85b02554d60270f1722a0 100644 (file)
@@ -21,11 +21,6 @@ struct ltdb_private {
                struct ldb_message *attributes;
                bool one_level_indexes;
                bool attribute_indexes;
-
-               struct {
-                       char *name;
-                       int flags;
-               } last_attribute;
        } *cache;
 
        int in_transaction;