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

Method isReplicating

src/jrd/Relation.cpp:40–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38/// jrd_rel
39
40bool jrd_rel::isReplicating(thread_db* tdbb)
41{
42 Database* const dbb = tdbb->getDatabase();
43 if (!dbb->isReplicating(tdbb))
44 return false;
45
46 Attachment* const attachment = tdbb->getAttachment();
47 attachment->checkReplSetLock(tdbb);
48
49 if (rel_repl_state.isUnknown())
50 rel_repl_state = MET_get_repl_state(tdbb, rel_name);
51
52 return rel_repl_state.value;
53}
54
55RelationPages* jrd_rel::getPagesInternal(thread_db* tdbb, TraNumber tran, bool allocPages)
56{

Callers 3

transaction_startFunction · 0.45
getReplicatorFunction · 0.45
checkTableFunction · 0.45

Calls 4

getDatabaseMethod · 0.80
checkReplSetLockMethod · 0.80
getAttachmentMethod · 0.45
isUnknownMethod · 0.45

Tested by

no test coverage detected