ctdb-mutex: open() and fstat() when testing lock file
commit97a1714ee9427ca22201ebcc5201817d59f17764
authorMartin Schwenke <martin@meltin.net>
Tue, 8 Feb 2022 01:15:26 +0000 (8 12:15 +1100)
committerMartin Schwenke <martins@samba.org>
Thu, 28 Jul 2022 10:09:34 +0000 (28 10:09 +0000)
tree26ada73985b676cdaa90d340e0769e42aa89e73e
parentc07e81abf04c20fb591376efcaa9b738a60c1a58
ctdb-mutex: open() and fstat() when testing lock file

This makes a file descriptor available for other I/O.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ctdb_mutex_fcntl_helper.c
ctdb/tests/UNIT/cunit/cluster_mutex_002.sh