lib ldb: rename ltdb_req_spy to ldb_kv_req_spy
authorGary Lockyer <gary@catalyst.net.nz>
Thu, 19 Jul 2018 21:14:52 +0000 (09:14 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 30 Jul 2018 12:31:53 +0000 (14:31 +0200)
Rename ltdb_req_spy to ldb_kv_req_spy, as it is 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_tdb.c
lib/ldb/ldb_tdb/ldb_tdb.h

index 1f0f0fca1302b2d4c6ab8e59e57b635fab405e6d..339d27418bb6a9da7494aedec245aac713d905e0 100644 (file)
@@ -56,7 +56,7 @@
 /*
   prevent memory errors on callbacks
 */
-struct ltdb_req_spy {
+struct ldb_kv_req_spy {
        struct ldb_kv_context *ctx;
 };
 
@@ -2111,7 +2111,7 @@ done:
 
 static int ldb_kv_request_destructor(void *ptr)
 {
-       struct ltdb_req_spy *spy = talloc_get_type(ptr, struct ltdb_req_spy);
+       struct ldb_kv_req_spy *spy = talloc_get_type(ptr, struct ldb_kv_req_spy);
 
        if (spy->ctx != NULL) {
                spy->ctx->spy = NULL;
@@ -2184,7 +2184,7 @@ static int ldb_kv_handle_request(struct ldb_module *module,
 
        /* set a spy so that we do not try to use the request context
         * if it is freed before ltdb_callback fires */
-       ac->spy = talloc(req, struct ltdb_req_spy);
+       ac->spy = talloc(req, struct ldb_kv_req_spy);
        if (NULL == ac->spy) {
                talloc_free(ac);
                return LDB_ERR_OPERATIONS_ERROR;
index 5c6cf98b1e43799fc6e278c78eafdb28773e9d84..9a9471e8c91765c9e03bd89e6194238123e1101a 100644 (file)
@@ -96,7 +96,7 @@ struct ldb_kv_context {
        struct ldb_request *req;
 
        bool request_terminated;
-       struct ltdb_req_spy *spy;
+       struct ldb_kv_req_spy *spy;
 
        /* search stuff */
        const struct ldb_parse_tree *tree;