summaryrefslogtreecommitdiff
path: root/ctdb/server
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2018-10-15 21:21:25 +1100
committerAmitay Isaacs <amitay@samba.org>2018-12-18 07:12:10 +0100
commitcdca0d7e78a4cad797ff457f860a37de78bcdb44 (patch)
tree1bd84d03202cc3c350353e5e72b38ee5d1542403 /ctdb/server
parent2e3ad8c20d2964fba14d0d5b0b36c334ac22caa5 (diff)
downloadsamba-cdca0d7e78a4cad797ff457f860a37de78bcdb44.tar.gz
ctdb-daemon Add extra debug during record deletion for vacuuming
It isn't currently possible to distinguish these 2 cases. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/server')
-rw-r--r--ctdb/server/ctdb_recover.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ctdb/server/ctdb_recover.c b/ctdb/server/ctdb_recover.c
index f05052e8466..b6e13136fae 100644
--- a/ctdb/server/ctdb_recover.c
+++ b/ctdb/server/ctdb_recover.c
@@ -969,6 +969,7 @@ static int delete_tdb_record(struct ctdb_context *ctdb, struct ctdb_db_context *
/* use a non-blocking lock */
if (tdb_chainlock_nonblock(ctdb_db->ltdb->tdb, key) != 0) {
+ DBG_INFO("Failed to get non-blocking chain lock\n");
return -1;
}
@@ -1024,6 +1025,7 @@ static int delete_tdb_record(struct ctdb_context *ctdb, struct ctdb_db_context *
if (tdb_lock_nonblock(ctdb_db->ltdb->tdb, -1, F_WRLCK) != 0) {
tdb_chainunlock(ctdb_db->ltdb->tdb, key);
+ DBG_INFO("Failed to get non-blocking freelist lock\n");
free(data2.dptr);
return -1;
}