Skip to content

Commit 0173e68

Browse files
committed
scripted-diff: Rename datadir path variables in util/system.cpp
-BEGIN VERIFY SCRIPT- sed -i 's/pathCachedNetSpecific/g_datadir_path_cached_net_specific/' src/util/system.cpp sed -i 's/pathCached/g_datadir_path_cached/' src/util/system.cpp -END VERIFY SCRIPT-
1 parent 79c8674 commit 0173e68

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/util/system.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -716,13 +716,13 @@ const fs::path &GetBlocksDir()
716716
}
717717

718718
static Mutex g_datadir_path_mutex;
719-
static fs::path pathCached GUARDED_BY(g_datadir_path_mutex);
720-
static fs::path pathCachedNetSpecific GUARDED_BY(g_datadir_path_mutex);
719+
static fs::path g_datadir_path_cached GUARDED_BY(g_datadir_path_mutex);
720+
static fs::path g_datadir_path_cached_net_specific GUARDED_BY(g_datadir_path_mutex);
721721

722722
const fs::path &GetDataDir(bool fNetSpecific)
723723
{
724724
LOCK(g_datadir_path_mutex);
725-
fs::path &path = fNetSpecific ? pathCachedNetSpecific : pathCached;
725+
fs::path &path = fNetSpecific ? g_datadir_path_cached_net_specific : g_datadir_path_cached;
726726

727727
// Cache the path to avoid calling fs::create_directories on every call of
728728
// this function
@@ -761,8 +761,8 @@ void ClearDatadirCache()
761761
WITH_LOCK(g_blocksdir_path_mutex, g_blocks_path_cache_net_specific = fs::path());
762762

763763
LOCK(g_datadir_path_mutex);
764-
pathCached = fs::path();
765-
pathCachedNetSpecific = fs::path();
764+
g_datadir_path_cached = fs::path();
765+
g_datadir_path_cached_net_specific = fs::path();
766766
}
767767

768768
fs::path GetConfigFile(const std::string& confPath)

0 commit comments

Comments
 (0)