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

Function REPL_exec_sql

src/jrd/replication/Publisher.cpp:666–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

664}
665
666void REPL_exec_sql(thread_db* tdbb, jrd_tra* transaction, const string& sql)
667{
668 fb_assert(tdbb->tdbb_flags & TDBB_repl_in_progress);
669
670 if (tdbb->tdbb_flags & TDBB_dont_post_dfw)
671 return;
672
673 FbLocalStatus status;
674 const auto replicator = getReplicator(tdbb, status, transaction);
675 if (!replicator)
676 return;
677
678 const auto attachment = tdbb->getAttachment();
679 const auto charset = attachment->att_charset;
680
681 // This place is already protected from recursion in calling code
682
683 replicator->executeSqlIntl(&status, charset, sql.c_str());
684
685 checkStatus(tdbb, status, transaction);
686}
687
688void REPL_journal_switch(thread_db* tdbb)
689{

Callers 1

executeMethod · 0.85

Calls 5

getReplicatorFunction · 0.85
checkStatusFunction · 0.85
getAttachmentMethod · 0.45
executeSqlIntlMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected