summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-07-04 18:18:58 +0200
committerVolker Lendecke <vl@samba.org>2010-07-05 11:06:26 +0200
commitb9032978785be65dcc189ea982bd843fa8453b80 (patch)
tree6f31d32047b1bf95dd92a6d87cbf01ab7e05d7cd /source3/locking
parent07854cb099555a3d1590ec310b1d938e786a9eb5 (diff)
downloadsamba-b9032978785be65dcc189ea982bd843fa8453b80.tar.gz
samba-b9032978785be65dcc189ea982bd843fa8453b80.tar.bz2
samba-b9032978785be65dcc189ea982bd843fa8453b80.zip
s3: Remove procid_self() from init_strict_lock_struct()
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/locking.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index 917b436e18..0cd349eeba 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -37,6 +37,7 @@
#include "includes.h"
#include "librpc/gen_ndr/messaging.h"
+#include "smbd/globals.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_LOCKING
@@ -87,7 +88,7 @@ void init_strict_lock_struct(files_struct *fsp,
plock->context.smblctx = smblctx;
plock->context.tid = fsp->conn->cnum;
- plock->context.pid = procid_self();
+ plock->context.pid = sconn_server_id(fsp->conn->sconn);
plock->start = start;
plock->size = size;
plock->fnum = fsp->fnum;