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;
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;
{
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
{
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,