MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / AutoSavePoint

Method AutoSavePoint

src/jrd/Savepoint.cpp:634–642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

632// AutoSavePoint implementation
633
634AutoSavePoint::AutoSavePoint(thread_db* tdbb, jrd_tra* trans, bool cond)
635 : m_tdbb(tdbb), m_transaction(trans), m_number(0)
636{
637 if (!cond)
638 return;
639
640 const auto savepoint = trans->startSavepoint();
641 m_number = savepoint->getNumber();
642}
643
644AutoSavePoint::~AutoSavePoint()
645{

Callers

nothing calls this directly

Calls 2

getNumberMethod · 0.80
startSavepointMethod · 0.45

Tested by

no test coverage detected