Enable authenticated primitive life sessions
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m59s
Foundation / checks (postgres) (push) Canceled after 0s
Foundation / checks (tsan) (push) Canceled after 0s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 6m2s
Foundation / checks (network) (push) Canceled after 3m53s
Foundation / checks (client) (push) Canceled after 6m8s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m59s
Foundation / checks (postgres) (push) Canceled after 0s
Foundation / checks (tsan) (push) Canceled after 0s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 6m2s
Foundation / checks (network) (push) Canceled after 3m53s
Foundation / checks (client) (push) Canceled after 6m8s
This commit is contained in:
@@ -57,6 +57,9 @@ class PrimitiveRegionHost {
|
||||
[[nodiscard]] PrimitiveHostReply new_life(const persistence::Uuid& account,
|
||||
std::uint64_t generation, std::uint64_t request,
|
||||
std::uint32_t rules);
|
||||
// Read-only retry/query. It never creates a reservation or life.
|
||||
[[nodiscard]] PrimitiveHostReply query_life(const persistence::Uuid& account,
|
||||
std::uint64_t generation, std::uint64_t request);
|
||||
[[nodiscard]] std::optional<persistence::LeaseGrant> authority() const;
|
||||
[[nodiscard]] const HostStatus& status() const noexcept {
|
||||
return status_;
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <expected>
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <span>
|
||||
@@ -91,6 +92,14 @@ struct RegionSessionsConfig {
|
||||
// M10.8d recovery: this often, open outgoing transfers prepared more than ticket_lifetime
|
||||
// + 10 s ago (by the store's clock, e.g. by a process that died) are aborted.
|
||||
std::chrono::milliseconds overdue_poll{5000};
|
||||
// v5 is accepted only when both primitive-life handlers are supplied. Callbacks
|
||||
// receive the authenticated account and durable control generation for this session.
|
||||
std::function<network::PrimitiveLifeOutcome(const network::AccountId&, std::uint64_t,
|
||||
std::uint64_t)>
|
||||
create_primitive_life;
|
||||
std::function<network::PrimitiveLifeOutcome(const network::AccountId&, std::uint64_t,
|
||||
std::uint64_t)>
|
||||
query_primitive_life;
|
||||
};
|
||||
// The region host's authority, read once per poll.
|
||||
struct HostFacts {
|
||||
|
||||
Reference in New Issue
Block a user