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

Function checkTable

src/jrd/replication/Publisher.cpp:243–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241 }
242
243 bool checkTable(thread_db* tdbb, jrd_rel* relation)
244 {
245 if (relation->isTemporary())
246 return false;
247
248 if (!relation->isSystem())
249 {
250 if (!relation->isReplicating(tdbb))
251 return false;
252
253 const auto attachment = tdbb->getAttachment();
254 const auto matcher = attachment->att_repl_matcher.get();
255
256 if (matcher && !matcher->matchTable(relation->rel_name))
257 return false;
258 }
259 // Do not replicate RDB$BACKUP_HISTORY as it describes physical-level things
260 else if (relation->rel_id == rel_backup_history)
261 return false;
262
263 return true;
264 }
265
266 Record* upgradeRecord(thread_db* tdbb, jrd_rel* relation, Record* record)
267 {

Callers 3

REPL_storeFunction · 0.85
REPL_modifyFunction · 0.85
REPL_eraseFunction · 0.85

Calls 6

matchTableMethod · 0.80
isTemporaryMethod · 0.45
isSystemMethod · 0.45
isReplicatingMethod · 0.45
getAttachmentMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected