mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
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>
This commit is contained in:
parent
abe4046643
commit
1409895d9e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user