diff --git a/src/jrd/Relation.cpp b/src/jrd/Relation.cpp index 5140b9efcb..9ef8047a86 100644 --- a/src/jrd/Relation.cpp +++ b/src/jrd/Relation.cpp @@ -38,6 +38,10 @@ using namespace Jrd; bool jrd_rel::isReplicating(thread_db* tdbb) { + Database* const dbb = tdbb->getDatabase(); + if (!dbb->isReplicating(tdbb)) + return false; + Attachment* const attachment = tdbb->getAttachment(); attachment->checkReplSetLock(tdbb);