@@ -508,7 +508,7 @@ static bool create_expression_index(thread_db* tdbb, SSHORT phase, DeferredWork*
508508static void check_computed_dependencies(thread_db* tdbb, jrd_tra* transaction,
509509 const QualifiedName& fieldName);
510510static void check_dependencies(thread_db*, const QualifiedName&, const MetaName&, int, jrd_tra*);
511- static void check_filename(const Firebird::string&, bool);
511+ static void check_filename(thread_db*, const Firebird::string&, bool);
512512static void cleanup_index_creation(thread_db*, DeferredWork*, jrd_tra*);
513513static bool formatsAreEqual(const Format*, const Format*);
514514static bool find_depend_in_dfw(thread_db*, const QualifiedName&, USHORT, USHORT, jrd_tra*);
@@ -1930,7 +1930,7 @@ static bool add_shadow(thread_db* tdbb, SSHORT phase, DeferredWork* work, jrd_tr
19301930 return true;
19311931
19321932 case 4:
1933- check_filename(work->dfw_name.c_str(), false);
1933+ check_filename(tdbb, work->dfw_name.c_str(), false);
19341934
19351935 /* could have two cases:
19361936 1) this shadow has already been written to, so add this file using
@@ -2022,7 +2022,7 @@ static bool add_difference(thread_db* tdbb, SSHORT phase, DeferredWork* work, jr
20222022 ERR_post(Arg::Gds(isc_no_meta_update) <<
20232023 Arg::Gds(isc_wrong_backup_state));
20242024 }
2025- check_filename(work->dfw_name.c_str(), true);
2025+ check_filename(tdbb, work->dfw_name.c_str(), true);
20262026 dbb->dbb_backup_manager->setDifference(tdbb, work->dfw_name.c_str());
20272027 }
20282028 break;
@@ -2931,7 +2931,7 @@ static void check_dependencies(thread_db* tdbb,
29312931}
29322932
29332933
2934- static void check_filename(const Firebird::string& name, bool shareExpand)
2934+ static void check_filename(thread_db* tdbb, const Firebird::string& name, bool shareExpand)
29352935{
29362936/**************************************
29372937 *
@@ -2944,6 +2944,9 @@ static void check_filename(const Firebird::string& name, bool shareExpand)
29442944 * inet node name.
29452945 *
29462946 **************************************/
2947+ if (tdbb->tdbb_flags & TDBB_replicator)
2948+ return;
2949+
29472950 const Firebird::PathName file_name(name.ToPathName());
29482951 const bool valid = file_name.find("::") == Firebird::PathName::npos;
29492952
0 commit comments