mirror of
https://github.com/samba-team/samba.git
synced 2025-08-31 22:02:58 +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:
committed by
Andrew Bartlett
parent
c782d710e9
commit
17a84d12e2
@ -56,7 +56,7 @@
|
|||||||
/*
|
/*
|
||||||
prevent memory errors on callbacks
|
prevent memory errors on callbacks
|
||||||
*/
|
*/
|
||||||
struct ltdb_req_spy {
|
struct ldb_kv_req_spy {
|
||||||
struct ldb_kv_context *ctx;
|
struct ldb_kv_context *ctx;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -2111,7 +2111,7 @@ done:
|
|||||||
|
|
||||||
static int ldb_kv_request_destructor(void *ptr)
|
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) {
|
if (spy->ctx != NULL) {
|
||||||
spy->ctx->spy = 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
|
/* set a spy so that we do not try to use the request context
|
||||||
* if it is freed before ltdb_callback fires */
|
* 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) {
|
if (NULL == ac->spy) {
|
||||||
talloc_free(ac);
|
talloc_free(ac);
|
||||||
return LDB_ERR_OPERATIONS_ERROR;
|
return LDB_ERR_OPERATIONS_ERROR;
|
||||||
|
@ -96,7 +96,7 @@ struct ldb_kv_context {
|
|||||||
struct ldb_request *req;
|
struct ldb_request *req;
|
||||||
|
|
||||||
bool request_terminated;
|
bool request_terminated;
|
||||||
struct ltdb_req_spy *spy;
|
struct ldb_kv_req_spy *spy;
|
||||||
|
|
||||||
/* search stuff */
|
/* search stuff */
|
||||||
const struct ldb_parse_tree *tree;
|
const struct ldb_parse_tree *tree;
|
||||||
|
Reference in New Issue
Block a user