diff options
author | mrambacher <mrambach@gmail.com> | 2022-01-04 16:44:54 -0800 |
---|---|---|
committer | Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> | 2022-01-04 16:45:49 -0800 |
commit | fe31dc53ca04a6241a1489be826b20218dff987e (patch) | |
tree | a982e297c81f920193ee115828acf21bbee430cc /port/win | |
parent | 677d2b4a8f8fd19d0c39a9ee8f648742e610688d (diff) |
Make the Env class Customizable (#9293)
Summary:
Allows the Env to have options (Configurable) and loads like other Customizable classes.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/9293
Reviewed By: pdillinger, zhichao-cao
Differential Revision: D33181591
Pulled By: mrambacher
fbshipit-source-id: 55e823886c654d214eda9eedd45ccdc54dac14d7
Diffstat (limited to 'port/win')
-rw-r--r-- | port/win/env_win.cc | 4 | ||||
-rw-r--r-- | port/win/env_win.h | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/port/win/env_win.cc b/port/win/env_win.cc index 53c32ed2d..1b0e70ee6 100644 --- a/port/win/env_win.cc +++ b/port/win/env_win.cc @@ -1413,10 +1413,6 @@ const std::shared_ptr<SystemClock>& SystemClock::Default() { std::make_shared<port::WinClock>(); return clock; } - -std::unique_ptr<Env> NewCompositeEnv(const std::shared_ptr<FileSystem>& fs) { - return std::unique_ptr<Env>(new CompositeEnvWrapper(Env::Default(), fs)); -} } // namespace ROCKSDB_NAMESPACE #endif diff --git a/port/win/env_win.h b/port/win/env_win.h index e22f3ebe0..991c840a4 100644 --- a/port/win/env_win.h +++ b/port/win/env_win.h @@ -260,6 +260,9 @@ class WinEnv : public CompositeEnv { WinEnv(); ~WinEnv(); + static const char* kClassName() { return "WinEnv"; } + const char* Name() const override { return kClassName(); } + const char* NickName() const override { return kDefaultName(); } Status GetHostName(char* name, uint64_t len) override; |