Add primitive object publication and recovery adapter (M11.2c-2d)
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m53s
Foundation / checks (client) (push) Successful in 12m22s
Foundation / checks (network) (push) Successful in 13m52s
Foundation / checks (tsan) (push) Successful in 8m7s
Foundation / checks (checks) (push) Successful in 33m54s
Foundation / checks (postgres) (push) Successful in 47m38s
Foundation / postgres-tools (push) Successful in 19s
Foundation / image (push) Successful in 2m39s
Foundation / server-image (push) Successful in 4m16s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m53s
Foundation / checks (client) (push) Successful in 12m22s
Foundation / checks (network) (push) Successful in 13m52s
Foundation / checks (tsan) (push) Successful in 8m7s
Foundation / checks (checks) (push) Successful in 33m54s
Foundation / checks (postgres) (push) Successful in 47m38s
Foundation / postgres-tools (push) Successful in 19s
Foundation / image (push) Successful in 2m39s
Foundation / server-image (push) Successful in 4m16s
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <chrono>
|
||||
#include <cstdint>
|
||||
#include <expected>
|
||||
#include <vector>
|
||||
|
||||
namespace evo::persistence {
|
||||
// Schema v15, ADR-0100. These operations allocate identity, never a biological
|
||||
@@ -32,6 +33,13 @@ struct LifeReservation {
|
||||
LifeRefusal refusal{};
|
||||
friend bool operator==(const LifeReservation&, const LifeReservation&) = default;
|
||||
};
|
||||
struct PrimitiveLifeBinding {
|
||||
Uuid account{};
|
||||
std::uint64_t request{}, identity{}, born{};
|
||||
Uuid commit{};
|
||||
std::uint64_t commit_sequence{};
|
||||
friend bool operator==(const PrimitiveLifeBinding&, const PrimitiveLifeBinding&) = default;
|
||||
};
|
||||
// Exact retry returns the original identity/owning region/refusal, even after
|
||||
// account control moves. The result grants no authority in the returned region.
|
||||
// request_id is in the new-life namespace, separate from M10 probe action IDs.
|
||||
@@ -45,4 +53,8 @@ reserve_primitive_life(Postgres& db, RegionKey key, const LeaseGrant& lease, con
|
||||
reject_primitive_life(Postgres& db, RegionKey key, const LeaseGrant& lease, const Uuid& account,
|
||||
std::uint64_t generation, std::uint64_t request_id, LifeRefusal reason,
|
||||
std::chrono::milliseconds timeout);
|
||||
// Bounded durable binding set for checkpoint reconciliation; session generations
|
||||
// are intentionally absent and must be reacquired after recovery.
|
||||
[[nodiscard]] std::expected<std::vector<PrimitiveLifeBinding>, LifeReservationFailure>
|
||||
load_primitive_lives(Postgres& db, RegionKey key, std::chrono::milliseconds timeout);
|
||||
} // namespace evo::persistence
|
||||
|
||||
Reference in New Issue
Block a user