This list is skipped afterwards when the lists are processed.
struct ctdb_db_context *ctdb_db = vdata->ctdb_db;
uint32_t lmaster;
struct ctdb_ltdb_header *hdr;
- int res;
+ int res = 0;
lmaster = ctdb_lmaster(ctdb, &key);
if (lmaster >= ctdb->num_nodes) {
vdata->delete_count++;
}
+ } else {
+ /*
+ * We are not lmaster.
+ * Add the record to the blob ready to send to the nodes.
+ */
+ res = add_record_to_vacuum_fetch_list(vdata, key);
}
- /* add the record to the blob ready to send to the nodes */
- res = add_record_to_vacuum_fetch_list(vdata, key);
-
return res;
}