Browse Source

[Init] initial commit

ld
mwish 3 years ago
parent
commit
1ca4f5b466
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      util/env_posix.cc

+ 1
- 1
util/env_posix.cc View File

@ -108,7 +108,7 @@ class Limiter {
class PosixSequentialFile final : public SequentialFile { class PosixSequentialFile final : public SequentialFile {
public: public:
PosixSequentialFile(std::string filename, int fd) PosixSequentialFile(std::string filename, int fd)
: fd_(fd), filename_(filename) {}
: fd_(fd), filename_(std::move(filename)) {}
~PosixSequentialFile() override { close(fd_); } ~PosixSequentialFile() override { close(fd_); }
Status Read(size_t n, Slice* result, char* scratch) override { Status Read(size_t n, Slice* result, char* scratch) override {

Loading…
Cancel
Save