summaryrefslogtreecommitdiff
path: root/ctdb/server
diff options
context:
space:
mode:
Diffstat (limited to 'ctdb/server')
-rw-r--r--ctdb/server/ctdb_mutex_fcntl_helper.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ctdb/server/ctdb_mutex_fcntl_helper.c b/ctdb/server/ctdb_mutex_fcntl_helper.c
index 7b66c78cd8e..166d9c2760e 100644
--- a/ctdb/server/ctdb_mutex_fcntl_helper.c
+++ b/ctdb/server/ctdb_mutex_fcntl_helper.c
@@ -50,7 +50,6 @@ static char fcntl_lock(const char *file, int *outfd)
if (fcntl(fd, F_SETLK, &lock) != 0) {
int saved_errno = errno;
close(fd);
- fd = -1;
if (saved_errno == EACCES ||
saved_errno == EAGAIN) {
/* Lock contention, fail silently */