summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/open.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index eff36f002c..7d02e52108 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);