This is to take advantage of the hash collision handling and logging
also in ctdb_local_schedule_for_deletion.
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 */