summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-11-24 14:14:37 +0000
committerStefan Metzmacher <metze@samba.org>2013-03-26 11:19:19 +0100
commit1409895d9e271744060d3f1ef2c71da5b5151f6a (patch)
tree4f7fdcc6ea525243321899e10cb710b233d6ae46 /source3/lib
parentabe4046643735cf0bc5bcdfe330dd946ab221808 (diff)
downloadsamba-1409895d9e271744060d3f1ef2c71da5b5151f6a.tar.gz
samba-1409895d9e271744060d3f1ef2c71da5b5151f6a.tar.bz2
samba-1409895d9e271744060d3f1ef2c71da5b5151f6a.zip
dbwrap-ctdb: Use ctdbd_parse in db_ctdb_parse_record
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/dbwrap/dbwrap_ctdb.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c
index 399c8503d9..691acdb491 100644
--- a/source3/lib/dbwrap/dbwrap_ctdb.c
+++ b/source3/lib/dbwrap/dbwrap_ctdb.c
@@ -1211,7 +1211,6 @@ static NTSTATUS db_ctdb_parse_record(struct db_context *db, TDB_DATA key,
db->private_data, struct db_ctdb_ctx);
struct db_ctdb_parse_record_state state;
NTSTATUS status;
- TDB_DATA data;
state.parser = parser;
state.private_data = private_data;
@@ -1249,14 +1248,8 @@ static NTSTATUS db_ctdb_parse_record(struct db_context *db, TDB_DATA key,
return NT_STATUS_OK;
}
- status = ctdbd_fetch(messaging_ctdbd_connection(), ctx->db_id, key,
- talloc_tos(), &data, state.ask_for_readonly_copy);
- if (!NT_STATUS_IS_OK(status)) {
- return status;
- }
- parser(key, data, private_data);
- TALLOC_FREE(data.dptr);
- return NT_STATUS_OK;
+ return ctdbd_parse(messaging_ctdbd_connection(), ctx->db_id, key,
+ state.ask_for_readonly_copy, parser, private_data);
}
struct traverse_state {