Expand description
Persistent global counter and database version state.
The counter records sequence numbers before handing them to writers and tracks their ordered retirement through permits. The same map stores the database schema version used by migrations.
Re-exportsยง
use std::ops::Range;๐use std::sync::Arc;๐use futures::TryFutureExt;๐use tokio::sync::watch::Sender;๐use tuwunel_core::Result;๐use tuwunel_core::err;๐use tuwunel_core::implement;๐use tuwunel_core::utils;๐use tuwunel_core::utils::two_phase_counter::Counter as TwoPhaseCounter;๐use tuwunel_core::utils::two_phase_counter::Permit as TwoPhasePermit;๐use tuwunel_database::Database;๐use tuwunel_database::Deserialized;๐use tuwunel_database::Handle;๐use tuwunel_database::Map;๐
Structsยง
- Data
- Owns persistent global state and the two-phase sequence counter.
Constantsยง
- COUNTER ๐