@@ -498,7 +498,7 @@ static bool create_expression_index(thread_db* tdbb, SSHORT phase, DeferredWork*
498
498
static void check_computed_dependencies(thread_db* tdbb, jrd_tra* transaction,
499
499
const MetaName& fieldName);
500
500
static void check_dependencies(thread_db*, const TEXT*, const TEXT*, const TEXT*, int, jrd_tra*);
501
- static void check_filename(const Firebird::string&, bool);
501
+ static void check_filename(thread_db*, const Firebird::string&, bool);
502
502
static void cleanup_index_creation(thread_db*, DeferredWork*, jrd_tra*);
503
503
static bool formatsAreEqual(const Format*, const Format*);
504
504
static bool find_depend_in_dfw(thread_db*, TEXT*, USHORT, USHORT, jrd_tra*);
@@ -1883,9 +1883,8 @@ static bool add_file(thread_db* tdbb, SSHORT phase, DeferredWork* work, jrd_tra*
1883
1883
// Check the file name for node name. This has already
1884
1884
// been done for shadows in add_shadow()
1885
1885
1886
- if (work->dfw_type != dfw_add_shadow) {
1887
- check_filename(work->dfw_name, true);
1888
- }
1886
+ if (work->dfw_type != dfw_add_shadow)
1887
+ check_filename(tdbb, work->dfw_name, true);
1889
1888
1890
1889
// User transaction may be safely used instead of system, cause
1891
1890
// we requested and got exclusive database access. AP-2008.
@@ -2003,7 +2002,7 @@ static bool add_shadow(thread_db* tdbb, SSHORT phase, DeferredWork* work, jrd_tr
2003
2002
return true;
2004
2003
2005
2004
case 4:
2006
- check_filename(work->dfw_name, false);
2005
+ check_filename(tdbb, work->dfw_name, false);
2007
2006
2008
2007
/* could have two cases:
2009
2008
1) this shadow has already been written to, so add this file using
@@ -2155,7 +2154,7 @@ static bool add_difference(thread_db* tdbb, SSHORT phase, DeferredWork* work, jr
2155
2154
ERR_post(Arg::Gds(isc_no_meta_update) <<
2156
2155
Arg::Gds(isc_wrong_backup_state));
2157
2156
}
2158
- check_filename(work->dfw_name, true);
2157
+ check_filename(tdbb, work->dfw_name, true);
2159
2158
dbb->dbb_backup_manager->setDifference(tdbb, work->dfw_name.c_str());
2160
2159
}
2161
2160
break;
@@ -3055,7 +3054,7 @@ static void check_dependencies(thread_db* tdbb,
3055
3054
}
3056
3055
3057
3056
3058
- static void check_filename(const Firebird::string& name, bool shareExpand)
3057
+ static void check_filename(thread_db* tdbb, const Firebird::string& name, bool shareExpand)
3059
3058
{
3060
3059
/**************************************
3061
3060
*
@@ -3068,6 +3067,9 @@ static void check_filename(const Firebird::string& name, bool shareExpand)
3068
3067
* inet node name.
3069
3068
*
3070
3069
**************************************/
3070
+ if (tdbb->tdbb_flags & TDBB_replicator)
3071
+ return;
3072
+
3071
3073
const Firebird::PathName file_name(name.ToPathName());
3072
3074
const bool valid = file_name.find("::") == Firebird::PathName::npos;
3073
3075
0 commit comments