diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-10-18 22:13:20 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-10-18 11:54:46 +0000 |
commit | 034832ccd5f32658f8f199d277878985e5c65470 (patch) | |
tree | 564ee9d0b0a34ee615b303e4c4d863233c101318 /source4/lib/ldb/ldb_map/ldb_map_inbound.c | |
parent | f4c82c621de73bdaee7a4a9e8598ea41ec208256 (diff) | |
download | samba-034832ccd5f32658f8f199d277878985e5c65470.tar.gz samba-034832ccd5f32658f8f199d277878985e5c65470.tar.bz2 samba-034832ccd5f32658f8f199d277878985e5c65470.zip |
s4-ldb Add LDB_REQ_SET_LOCATION to help track handler use
This greatly assists in debugging what is going on with the
ldb handle, as it indicates where it was created.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Oct 18 11:54:46 UTC 2010 on sn-devel-104
Diffstat (limited to 'source4/lib/ldb/ldb_map/ldb_map_inbound.c')
-rw-r--r-- | source4/lib/ldb/ldb_map/ldb_map_inbound.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/lib/ldb/ldb_map/ldb_map_inbound.c b/source4/lib/ldb/ldb_map/ldb_map_inbound.c index cdc88afbc5..83eec1d555 100644 --- a/source4/lib/ldb/ldb_map/ldb_map_inbound.c +++ b/source4/lib/ldb/ldb_map/ldb_map_inbound.c @@ -414,6 +414,7 @@ int map_add(struct ldb_module *module, struct ldb_request *req) req->controls, ac, map_op_remote_callback, req); + LDB_REQ_SET_LOCATION(ac->remote_req); if (ret != LDB_SUCCESS) { return LDB_ERR_OPERATIONS_ERROR; } @@ -451,6 +452,7 @@ static int map_add_do_local(struct map_context *ac) ac, map_op_local_callback, ac->req); + LDB_REQ_SET_LOCATION(local_req); if (ret != LDB_SUCCESS) { return LDB_ERR_OPERATIONS_ERROR; } @@ -522,6 +524,7 @@ int map_modify(struct ldb_module *module, struct ldb_request *req) req->controls, ac, map_op_remote_callback, req); + LDB_REQ_SET_LOCATION(ac->remote_req); if (ret != LDB_SUCCESS) { return LDB_ERR_OPERATIONS_ERROR; } @@ -571,6 +574,7 @@ static int map_modify_do_local(struct map_context *ac) ac, map_op_local_callback, ac->req); + LDB_REQ_SET_LOCATION(local_req); if (ret != LDB_SUCCESS) { return LDB_ERR_OPERATIONS_ERROR; } @@ -582,6 +586,7 @@ static int map_modify_do_local(struct map_context *ac) ac, map_op_local_callback, ac->req); + LDB_REQ_SET_LOCATION(local_req); if (ret != LDB_SUCCESS) { return LDB_ERR_OPERATIONS_ERROR; } @@ -628,6 +633,7 @@ int map_delete(struct ldb_module *module, struct ldb_request *req) ac, map_op_remote_callback, req); + LDB_REQ_SET_LOCATION(ac->remote_req); if (ret != LDB_SUCCESS) { return LDB_ERR_OPERATIONS_ERROR; } @@ -670,6 +676,7 @@ static int map_delete_do_local(struct map_context *ac) ac, map_op_local_callback, ac->req); + LDB_REQ_SET_LOCATION(local_req); if (ret != LDB_SUCCESS) { return LDB_ERR_OPERATIONS_ERROR; } @@ -721,6 +728,7 @@ int map_rename(struct ldb_module *module, struct ldb_request *req) req->controls, ac, map_op_remote_callback, req); + LDB_REQ_SET_LOCATION(ac->remote_req); if (ret != LDB_SUCCESS) { return LDB_ERR_OPERATIONS_ERROR; } @@ -764,6 +772,7 @@ static int map_rename_do_local(struct map_context *ac) ac, map_rename_local_callback, ac->req); + LDB_REQ_SET_LOCATION(local_req); if (ret != LDB_SUCCESS) { return LDB_ERR_OPERATIONS_ERROR; } |