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

Method initSharedFile

src/jrd/replication/ChangeLog.cpp:426–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424}
425
426void ChangeLog::initSharedFile()
427{
428 PathName filename;
429 filename.printf(REPL_FILE, m_dbId.c_str());
430
431 m_sharedMemory.reset(FB_NEW_POOL(getPool())
432 SharedMemory<State>(filename.c_str(), STATE_MAPPING_SIZE, this));
433
434 const auto* header = m_sharedMemory->getHeader();
435 checkHeader(header);
436}
437
438void ChangeLog::lockState()
439{

Callers

nothing calls this directly

Calls 4

printfMethod · 0.45
c_strMethod · 0.45
resetMethod · 0.45
getHeaderMethod · 0.45

Tested by

no test coverage detected