diff options
author | mwish <anmmscs_maple@qq.com> | 2021-05-02 12:31:40 +0800 |
---|---|---|
committer | mwish <anmmscs_maple@qq.com> | 2021-05-02 14:16:51 +0800 |
commit | 1ca4f5b466c84063d61c350abe2c04f88d656e33 (patch) | |
tree | 2a069dfd771c1843fd7a6afd849185d061717d72 | |
parent | f57513a1d6c99636fc5b710150d0b93713af4e43 (diff) | |
download | leveldb-1ca4f5b466c84063d61c350abe2c04f88d656e33.tar.gz |
[Init] initial commit
-rw-r--r-- | util/env_posix.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/env_posix.cc b/util/env_posix.cc index d84cd1e..e6a5743 100644 --- a/util/env_posix.cc +++ b/util/env_posix.cc @@ -108,7 +108,7 @@ class Limiter { class PosixSequentialFile final : public SequentialFile { public: PosixSequentialFile(std::string filename, int fd) - : fd_(fd), filename_(filename) {} + : fd_(fd), filename_(std::move(filename)) {} ~PosixSequentialFile() override { close(fd_); } Status Read(size_t n, Slice* result, char* scratch) override { |