summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-26 15:13:14 +0200
committerJeremy Allison <jra@samba.org>2013-04-27 02:06:10 +0200
commit8283fd0e0090ed12b0b12d5acb550642d621b026 (patch)
tree9edc96324d422dcb6c8dcb1222020bfe702f977b /source3/smbd
parente13021e3af7c95c59b5997a6728d2dbd5fd27b8f (diff)
downloadsamba-8283fd0e0090ed12b0b12d5acb550642d621b026.tar.gz
samba-8283fd0e0090ed12b0b12d5acb550642d621b026.tar.bz2
samba-8283fd0e0090ed12b0b12d5acb550642d621b026.zip
smbd: Do not fetch the record in defer_open_done
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Apr 27 02:06:10 CEST 2013 on sn-devel-104
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);