mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
dbwrap: Allow dbwrap_record_watch_recv to not lock the record
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
a7e803485d
commit
e13021e3af
@ -401,6 +401,9 @@ NTSTATUS dbwrap_record_watch_recv(struct tevent_req *req,
|
||||
if (tevent_req_is_nterror(req, &status)) {
|
||||
return status;
|
||||
}
|
||||
if (prec == NULL) {
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
rec = dbwrap_fetch_locked(state->db, mem_ctx, state->key);
|
||||
if (rec == NULL) {
|
||||
return NT_STATUS_INTERNAL_DB_ERROR;
|
||||
|
Loading…
Reference in New Issue
Block a user