diff options
author | anand76 <anand76@devvm1373.frc2.facebook.com> | 2020-11-19 22:37:55 -0800 |
---|---|---|
committer | Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> | 2020-11-19 22:39:40 -0800 |
commit | 7c19d43883bdbb26b1cfceeeebeee983e7d5cf20 (patch) | |
tree | 1b5df202b0071ba79ccab88d0b3dece767698f8f /table | |
parent | 5c585e1908d4b8cff1feab436ccf38da0f5092b7 (diff) |
Fix initialization order of DBOptions and kHostnameForDbHostId (#7702)
Summary:
Fix initialization order of DBOptions and kHostnameForDbHostId by making the initialization of the latter static rather than dynamic.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/7702
Reviewed By: ajkr
Differential Revision: D25111633
Pulled By: anand1976
fbshipit-source-id: 7afad834a66e40bcd8694a43b40d378695212224
Diffstat (limited to 'table')
-rw-r--r-- | table/format.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/table/format.cc b/table/format.cc index 8af4d35e5..8fb66f8a1 100644 --- a/table/format.cc +++ b/table/format.cc @@ -41,6 +41,7 @@ extern const uint64_t kPlainTableMagicNumber; const uint64_t kLegacyPlainTableMagicNumber = 0; const uint64_t kPlainTableMagicNumber = 0; #endif +const char* kHostnameForDbHostId = "__hostname__"; bool ShouldReportDetailedTime(Env* env, Statistics* stats) { return env != nullptr && stats != nullptr && |