lib ldb: rename struct ltdb_reindex_context
authorGary Lockyer <gary@catalyst.net.nz>
Thu, 19 Jul 2018 20:52:48 +0000 (08:52 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 30 Jul 2018 12:31:52 +0000 (14:31 +0200)
Rename struct ltdb_reindex_context to ldb_kv_reindex_context, as this is
a key value level structure and not a tdb specific structure.

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

index 23b8aa005cb8972f236b40275865659577eeb27a..4d6c57b3a848f9d9b7befc9eb6cdbd341116687c 100644 (file)
@@ -2832,7 +2832,7 @@ static int delete_index(struct ltdb_private *ltdb, struct ldb_val key, struct ld
 static int re_key(struct ltdb_private *ltdb, struct ldb_val ldb_key, struct ldb_val val, void *state)
 {
        struct ldb_context *ldb;
-       struct ltdb_reindex_context *ctx = (struct ltdb_reindex_context *)state;
+       struct ldb_kv_reindex_context *ctx = (struct ldb_kv_reindex_context *)state;
        struct ldb_module *module = ctx->module;
        struct ldb_message *msg;
        unsigned int nb_elements_in_db;
@@ -2923,7 +2923,7 @@ static int re_key(struct ltdb_private *ltdb, struct ldb_val ldb_key, struct ldb_
 static int re_index(struct ltdb_private *ltdb, struct ldb_val ldb_key, struct ldb_val val, void *state)
 {
        struct ldb_context *ldb;
-       struct ltdb_reindex_context *ctx = (struct ltdb_reindex_context *)state;
+       struct ldb_kv_reindex_context *ctx = (struct ldb_kv_reindex_context *)state;
        struct ldb_module *module = ctx->module;
        struct ldb_message *msg;
        unsigned int nb_elements_in_db;
@@ -3010,7 +3010,7 @@ int ldb_kv_reindex(struct ldb_module *module)
 {
        struct ltdb_private *ltdb = talloc_get_type(ldb_module_get_private(module), struct ltdb_private);
        int ret;
-       struct ltdb_reindex_context ctx;
+       struct ldb_kv_reindex_context ctx;
 
        /*
         * Only triggered after a modification, but make clear we do
index c0938c0824c5cad6ae2bbf1555f0c38c6557c517..348b5fceb02ccbf1657243a907031008267adc01 100644 (file)
@@ -1924,7 +1924,7 @@ static int ltdb_update_in_iterate(struct ltdb_private *ltdb,
 {
        int tdb_ret;
        struct ldb_context *ldb;
-       struct ltdb_reindex_context *ctx = (struct ltdb_reindex_context *)state;
+       struct ldb_kv_reindex_context *ctx = (struct ldb_kv_reindex_context *)state;
        struct ldb_module *module = ctx->module;
        TDB_DATA key = {
                .dptr = ldb_key.data,
index 861d94a124f1baef4b72defcbe28acd8d5747b17..d7f6073a33d0a7b9212bf7aaf920a38969aef626 100644 (file)
@@ -109,7 +109,7 @@ struct ltdb_context {
        int error;
 };
 
-struct ltdb_reindex_context {
+struct ldb_kv_reindex_context {
        struct ldb_module *module;
        int error;
        uint32_t count;