@@ -508,7 +508,7 @@ static bool create_expression_index(thread_db* tdbb, SSHORT phase, DeferredWork*
508
508
static void check_computed_dependencies(thread_db* tdbb, jrd_tra* transaction,
509
509
const QualifiedName& fieldName);
510
510
static 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);
512
512
static void cleanup_index_creation(thread_db*, DeferredWork*, jrd_tra*);
513
513
static bool formatsAreEqual(const Format*, const Format*);
514
514
static 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
1930
1930
return true;
1931
1931
1932
1932
case 4:
1933
- check_filename(work->dfw_name.c_str(), false);
1933
+ check_filename(tdbb, work->dfw_name.c_str(), false);
1934
1934
1935
1935
/* could have two cases:
1936
1936
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
2022
2022
ERR_post(Arg::Gds(isc_no_meta_update) <<
2023
2023
Arg::Gds(isc_wrong_backup_state));
2024
2024
}
2025
- check_filename(work->dfw_name.c_str(), true);
2025
+ check_filename(tdbb, work->dfw_name.c_str(), true);
2026
2026
dbb->dbb_backup_manager->setDifference(tdbb, work->dfw_name.c_str());
2027
2027
}
2028
2028
break;
@@ -2931,7 +2931,7 @@ static void check_dependencies(thread_db* tdbb,
2931
2931
}
2932
2932
2933
2933
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)
2935
2935
{
2936
2936
/**************************************
2937
2937
*
@@ -2944,6 +2944,9 @@ static void check_filename(const Firebird::string& name, bool shareExpand)
2944
2944
* inet node name.
2945
2945
*
2946
2946
**************************************/
2947
+ if (tdbb->tdbb_flags & TDBB_replicator)
2948
+ return;
2949
+
2947
2950
const Firebird::PathName file_name(name.ToPathName());
2948
2951
const bool valid = file_name.find("::") == Firebird::PathName::npos;
2949
2952
0 commit comments