Skip to content

Commit

Permalink
AER-6714 - avoid unnecessary XDR trans-queue search when replication …
Browse files Browse the repository at this point in the history
…creates a record.
  • Loading branch information
gooding470 committed Mar 4, 2024
1 parent 02aa861 commit c941478
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion as/src/base/record.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,13 +259,15 @@ as_record_replace_if_better(as_remote_record* rr)
return -result;
}

r->last_update_time = rr->last_update_time;
r->last_update_time = rr->last_update_time; // just for truncate check

// Don't write record if it would be truncated.
if (as_truncate_record_is_truncated(r, ns)) {
record_replace_failed(rr, &r_ref, NULL, is_create);
return AS_OK;
}

r->last_update_time = 0; // restore after check
}
// else - not bothering to check that sets match.

Expand Down

0 comments on commit c941478

Please sign in to comment.