mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
ctdb-vacuum: Process all records not deleted on a remote node
This currently skips the last record. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14147 RN: Avoid potential data loss during recovery after vacuuming error Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net> (cherry picked from commit 33f1c9d9654fbdcb99c23f9d23c4bbe2cc596b98)
This commit is contained in:
parent
c788ff56ba
commit
6024163e17
@ -814,7 +814,7 @@ static void ctdb_process_delete_list(struct ctdb_db_context *ctdb_db,
|
|||||||
*/
|
*/
|
||||||
records = (struct ctdb_marshall_buffer *)outdata.dptr;
|
records = (struct ctdb_marshall_buffer *)outdata.dptr;
|
||||||
rec = (struct ctdb_rec_data_old *)&records->data[0];
|
rec = (struct ctdb_rec_data_old *)&records->data[0];
|
||||||
while (records->count-- > 1) {
|
while (records->count-- > 0) {
|
||||||
TDB_DATA reckey, recdata;
|
TDB_DATA reckey, recdata;
|
||||||
struct ctdb_ltdb_header *rechdr;
|
struct ctdb_ltdb_header *rechdr;
|
||||||
struct delete_record_data *dd;
|
struct delete_record_data *dd;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user