1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

vacuum: use insert_record_into_delete_queue in ctdb_local_schedule_for_deletion.

This is to take advantage of the hash collision handling and logging
also in ctdb_local_schedule_for_deletion.

(This used to be ctdb commit 52193b6692091e341ed7a81dbd9a61ae49a8aac5)
This commit is contained in:
Michael Adam 2011-03-11 15:57:45 +01:00
parent 74f65b6ca6
commit fe852ca337

View File

@ -1360,14 +1360,9 @@ int32_t ctdb_local_schedule_for_deletion(struct ctdb_db_context *ctdb_db,
if (ctdb_db->ctdb->ctdbd_pid == getpid()) {
/* main daemon - directly queue */
ret = insert_delete_record_data_into_tree(ctdb_db->ctdb,
ctdb_db,
ctdb_db->delete_queue,
hdr, key);
if (ret != 0) {
return -1;
}
return 0;
ret = insert_record_into_delete_queue(ctdb_db, hdr, key);
return ret;
}
/* child process: send the main daemon a control */