1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-30 17:49:30 +03:00

lib ldb: rename ltdb_req_spy to ldb_kv_req_spy

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>
This commit is contained in:
Gary Lockyer
2018-07-20 09:14:52 +12:00
committed by Andrew Bartlett
parent c782d710e9
commit 17a84d12e2
2 changed files with 4 additions and 4 deletions

View 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;

View 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;