lib ldb: rename ltdb_cache to ldb_kv_cache
authorGary Lockyer <gary@catalyst.net.nz>
Fri, 20 Jul 2018 01:31:27 +0000 (13:31 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 30 Jul 2018 12:31:53 +0000 (14:31 +0200)
Rename ltdb_cache to ldb_kv_cache as it's key value level and not tdb
specific

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/ldb_tdb/ldb_cache.c
lib/ldb/ldb_tdb/ldb_tdb.h

index 6c61e5907095088724823a031f0117cdd0147199..9e81b61592f31bafaa9bb9599c6e29fe3529a426 100644 (file)
@@ -418,7 +418,7 @@ int ldb_kv_cache_load(struct ldb_module *module)
        }
 
        if (ldb_kv->cache == NULL) {
-               ldb_kv->cache = talloc_zero(ldb_kv, struct ltdb_cache);
+               ldb_kv->cache = talloc_zero(ldb_kv, struct ldb_kv_cache);
                if (ldb_kv->cache == NULL)
                        goto failed;
        }
index ae9ce1fc6eec7bf360e0323aa59f089af4a2485b..f2a091bc3259d0dd52b2152fa9245a92f0419ade 100644 (file)
@@ -58,7 +58,7 @@ struct ldb_kv_private {
           possible */
        int tdb_seqnum;
 
-       struct ltdb_cache {
+       struct ldb_kv_cache {
                struct ldb_message *indexlist;
                bool one_level_indexes;
                bool attribute_indexes;