We want to reuse the reindex context struct for repacking, but it has an
unnecessary module pointer on it. Turns out the existing code doesn't
need it either, so this patch deletes the pointer.
Signed-off-by: Aaron Haslett <aaronhaslett@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
};
struct ldb_kv_reindex_context {
- struct ldb_module *module;
int error;
uint32_t count;
};
struct ldb_context *ldb;
struct ldb_kv_reindex_context *ctx =
(struct ldb_kv_reindex_context *)state;
- struct ldb_module *module = ctx->module;
+ struct ldb_module *module = ldb_kv->module;
struct ldb_message *msg;
int ret;
struct ldb_val key2;
struct ldb_context *ldb;
struct ldb_kv_reindex_context *ctx =
(struct ldb_kv_reindex_context *)state;
- struct ldb_module *module = ctx->module;
+ struct ldb_module *module = ldb_kv->module;
struct ldb_message *msg;
int ret;
bool is_record;
return LDB_ERR_OPERATIONS_ERROR;
}
- ctx.module = module;
ctx.error = 0;
ctx.count = 0;
struct ldb_context *ldb;
struct ldb_kv_reindex_context *ctx =
(struct ldb_kv_reindex_context *)state;
- struct ldb_module *module = ctx->module;
+ struct ldb_module *module = ldb_kv->module;
TDB_DATA key = {
.dptr = ldb_key.data,
.dsize = ldb_key.length