mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
ctdb-vacuum: Use non-blocking lock when traversing delete queue
This avoids vacuuming getting in the way of ctdb daemon to process record requests. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
parent
e4597f8771
commit
d35f512cd9
@ -446,12 +446,8 @@ static int delete_queue_traverse(void *param, void *data)
|
||||
|
||||
vdata->count.delete_queue.total++;
|
||||
|
||||
res = tdb_chainlock(ctdb_db->ltdb->tdb, dd->key);
|
||||
res = tdb_chainlock_nonblock(ctdb_db->ltdb->tdb, dd->key);
|
||||
if (res != 0) {
|
||||
DEBUG(DEBUG_ERR,
|
||||
(__location__ " Error getting chainlock on record with "
|
||||
"key hash [0x%08x] on database db[%s].\n",
|
||||
hash, ctdb_db->db_name));
|
||||
vdata->count.delete_queue.error++;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user