From 8283fd0e0090ed12b0b12d5acb550642d621b026 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 26 Apr 2013 15:13:14 +0200 Subject: [PATCH] smbd: Do not fetch the record in defer_open_done Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Sat Apr 27 02:06:10 CEST 2013 on sn-devel-104 --- source3/smbd/open.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index eff36f002c4..7d02e521081 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -1507,11 +1507,10 @@ static void defer_open_done(struct tevent_req *req) { struct defer_open_state *state = tevent_req_callback_data( req, struct defer_open_state); - struct db_record *rec = NULL; NTSTATUS status; bool ret; - status = dbwrap_record_watch_recv(req, talloc_tos(), &rec); + status = dbwrap_record_watch_recv(req, talloc_tos(), NULL); TALLOC_FREE(req); if (!NT_STATUS_IS_OK(status)) { DEBUG(5, ("dbwrap_record_watch_recv returned %s\n", @@ -1522,12 +1521,6 @@ static void defer_open_done(struct tevent_req *req) */ } - /* - * TODO: We need a version of dbwrap_record_watch_recv that does not - * fetch_lock the record. - */ - TALLOC_FREE(rec); - DEBUG(10, ("scheduling mid %llu\n", (unsigned long long)state->mid)); ret = schedule_deferred_open_message_smb(state->sconn, state->mid); -- 2.11.4.GIT