fix: close location durability and router races

This commit is contained in:
torlando-agent[bot]
2026-08-07 01:27:49 +00:00
parent d7a8f17ac8
commit fe0d1f7d55
10 changed files with 218 additions and 56 deletions
@@ -83,7 +83,10 @@ LocationPersistenceResult TransactionalLocationPersistence::save(
const CandidateResult promoted =
readCandidate(LocationPersistenceSlot::LIVE, candidate_size);
if (promoted == CandidateResult::IO_ERROR) {
return LocationPersistenceResult::IO_ERROR;
// TEMP was fully read-back validated before the atomic promotion.
// Once rename succeeds, the new generation is committed even if an
// immediate second observation is unavailable.
return LocationPersistenceResult::SAVED;
}
if (promoted != CandidateResult::VALID) {
return LocationPersistenceResult::INVALID_STATE;