mirror of
https://github.com/torlando-tech/pyxis.git
synced 2026-10-22 14:01:24 +00:00
fix: close location durability and router races
This commit is contained in:
1 parent
d7a8f17ac8
commit
fe0d1f7d55
10 files changed
+218
-56
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user