summaryrefslogtreecommitdiff
path: root/port/win
diff options
context:
space:
mode:
authormrambacher <mrambach@gmail.com>2021-11-02 09:06:02 -0700
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>2021-11-02 09:07:11 -0700
commitf72c834eab08f6e72780d8fead6039acfe565f44 (patch)
tree6c739838e5d3aa7bd95fcbf8bb0dc6c12decb61a /port/win
parentcfc57f55b5247e5a6634e76f083cfaca2613d90b (diff)
Make FileSystem a Customizable Class (#8649)
Summary: Pull Request resolved: https://github.com/facebook/rocksdb/pull/8649 Reviewed By: zhichao-cao Differential Revision: D32036059 Pulled By: mrambacher fbshipit-source-id: 4f1e7557ecac52eb849b83ae02b8d7d232112295
Diffstat (limited to 'port/win')
-rw-r--r--port/win/env_win.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/port/win/env_win.h b/port/win/env_win.h
index e86515979..d64b82c92 100644
--- a/port/win/env_win.h
+++ b/port/win/env_win.h
@@ -110,7 +110,10 @@ class WinFileSystem : public FileSystem {
static const std::shared_ptr<WinFileSystem>& Default();
WinFileSystem(const std::shared_ptr<SystemClock>& clock);
~WinFileSystem() {}
- const char* Name() const { return "WinFS"; }
+ static const char* kClassName() { return "WinFS"; }
+ const char* Name() const override { return kClassName(); }
+ const char* NickName() const { return kDefaultName(); }
+
static size_t GetSectorSize(const std::string& fname);
size_t GetPageSize() const { return page_size_; }
size_t GetAllocationGranularity() const { return allocation_granularity_; }