Skip to main content

Module manager

Module manager 

Source
Expand description

Datasource-scoped TransactionManager for joined sql: steps (sqltrans-exec step 9).

One manager is registered per catalog datasource at bundle boot. Pool resolution is LAZY: the manager holds the boot’s DatasourceCatalog and resolves the datasource’s pool through the catalog’s existing OnceCell path, exactly like the producer’s named-datasource path — boot never connects. Opening a session is the session’s admission sequence (SqlTxSession::open_on_pool): checkout + the one-time hygiene ROLLBACK, with the discard guard armed at checkout. BEGIN is never sent here (lazy begin, driven by camel_api::transaction::TransactionSession::begin).

The port owns no block deadline: the segment computes block_abs at block entry and bounds the open_session() await itself, reporting Timeout with elapsed measured from entry. The manager therefore arms only its acquire deadline and passes an effectively-unbounded block instant to the session’s min(block_abs, acquire_abs) admission race.

Structs§

SqlTransactionManager
TransactionManager serving one catalog datasource.

Constants§

DEFAULT_ACQUIRE_DEADLINE
Bound for connection acquisition reported by TransactionManager::acquire_deadline.