summaryrefslogtreecommitdiff
path: root/source3/smbd/service.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-03-21 12:18:09 +0100
committerVolker Lendecke <vl@samba.org>2012-03-21 14:26:06 +0100
commitf3fe53668f5f42123ab4d91de23ac4f16bf12733 (patch)
tree4a8d95b4c44e5424f20558669895ea1745e69f26 /source3/smbd/service.c
parent7dcc2bf7af10c6bf5f714b43ca81083fa1bea0b9 (diff)
downloadsamba-f3fe53668f5f42123ab4d91de23ac4f16bf12733.tar.gz
samba-f3fe53668f5f42123ab4d91de23ac4f16bf12733.tar.bz2
samba-f3fe53668f5f42123ab4d91de23ac4f16bf12733.zip
s3: Move the notify_ctx to the smbd_server_connection
We only need one notify_ctx per smbd. The notify_array can become quite large. It's based on absolute paths, so there's no point in having a copy of the complete array in memory multiple times. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Wed Mar 21 14:26:07 CET 2012 on sn-devel-104
Diffstat (limited to 'source3/smbd/service.c')
-rw-r--r--source3/smbd/service.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index 79e935d5d2..d28a51a9a7 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -698,10 +698,11 @@ static NTSTATUS make_connection_snum(struct smbd_server_connection *sconn,
on_err_call_dis_hook = true;
if ((!conn->printer) && (!conn->ipc) &&
- lp_change_notify(conn->params)) {
- conn->notify_ctx = notify_init(conn,
- sconn->msg_ctx,
- sconn->ev_ctx);
+ lp_change_notify(conn->params) &&
+ sconn->notify_ctx == NULL) {
+ sconn->notify_ctx = notify_init(sconn,
+ sconn->msg_ctx,
+ sconn->ev_ctx);
}
/*