MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / tryGetRunningTransaction

Method tryGetRunningTransaction

src/Interpreters/TransactionLog.cpp:589–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

587}
588
589MergeTreeTransactionPtr TransactionLog::tryGetRunningTransaction(const TIDHash & tid)
590{
591 std::lock_guard lock{running_list_mutex};
592 auto it = running_list.find(tid);
593 if (it == running_list.end())
594 return NO_TRANSACTION_PTR;
595 return it->second;
596}
597
598CSN TransactionLog::getCSN(const TransactionID & tid, const std::atomic<CSN> * failback_with_strict_load_csn)
599{

Callers 5

executeMethod · 0.80
tryGetCSNMethod · 0.80
validateInfoMethod · 0.80
unlockRemovalTIDMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected