diff options
Diffstat (limited to 'source3/lib/g_lock.c')
-rw-r--r-- | source3/lib/g_lock.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/lib/g_lock.c b/source3/lib/g_lock.c index d7828e228f..49f719b5fc 100644 --- a/source3/lib/g_lock.c +++ b/source3/lib/g_lock.c @@ -312,7 +312,8 @@ NTSTATUS g_lock_lock(struct g_lock_ctx *ctx, const char *name, #ifdef CLUSTER_SUPPORT if (lp_clustering()) { - status = ctdb_watch_us(messaging_ctdbd_connection()); + status = ctdb_watch_us( + messaging_ctdbd_connection(procid_self())); if (!NT_STATUS_IS_OK(status)) { DEBUG(10, ("could not register retry with ctdb: %s\n", nt_errstr(status))); @@ -387,7 +388,9 @@ NTSTATUS g_lock_lock(struct g_lock_ctx *ctx, const char *name, #ifdef CLUSTER_SUPPORT if (lp_clustering()) { - struct ctdbd_connection *conn = messaging_ctdbd_connection(); + struct ctdbd_connection *conn; + + conn = messaging_ctdbd_connection(procid_self()); r_fds = &_r_fds; FD_ZERO(r_fds); @@ -592,7 +595,7 @@ NTSTATUS g_lock_unlock(struct g_lock_ctx *ctx, const char *name) #ifdef CLUSTER_SUPPORT if (lp_clustering()) { - ctdb_unwatch(messaging_ctdbd_connection()); + ctdb_unwatch(messaging_ctdbd_connection(procid_self())); } #endif return status; |