|
|
|
@ -900,7 +900,7 @@ class EnvWrapper : public Env { |
|
|
|
|
public: |
|
|
|
|
// Initialize an EnvWrapper that delegates all calls to *t
|
|
|
|
|
explicit EnvWrapper(Env* t) : target_(t) { } |
|
|
|
|
virtual ~EnvWrapper(); |
|
|
|
|
~EnvWrapper() override; |
|
|
|
|
|
|
|
|
|
// Return the target to which this Env forwards all calls
|
|
|
|
|
Env* target() const { return target_; } |
|
|
|
@ -935,7 +935,7 @@ class EnvWrapper : public Env { |
|
|
|
|
const EnvOptions& options) override { |
|
|
|
|
return target_->NewRandomRWFile(fname, result, options); |
|
|
|
|
} |
|
|
|
|
virtual Status NewDirectory(const std::string& name, |
|
|
|
|
Status NewDirectory(const std::string& name, |
|
|
|
|
unique_ptr<Directory>* result) override { |
|
|
|
|
return target_->NewDirectory(name, result); |
|
|
|
|
} |
|
|
|
@ -998,14 +998,13 @@ class EnvWrapper : public Env { |
|
|
|
|
return target_->StartThread(f, a); |
|
|
|
|
} |
|
|
|
|
void WaitForJoin() override { return target_->WaitForJoin(); } |
|
|
|
|
virtual unsigned int GetThreadPoolQueueLen( |
|
|
|
|
Priority pri = LOW) const override { |
|
|
|
|
unsigned int GetThreadPoolQueueLen(Priority pri = LOW) const override { |
|
|
|
|
return target_->GetThreadPoolQueueLen(pri); |
|
|
|
|
} |
|
|
|
|
virtual Status GetTestDirectory(std::string* path) override { |
|
|
|
|
Status GetTestDirectory(std::string* path) override { |
|
|
|
|
return target_->GetTestDirectory(path); |
|
|
|
|
} |
|
|
|
|
virtual Status NewLogger(const std::string& fname, |
|
|
|
|
Status NewLogger(const std::string& fname, |
|
|
|
|
shared_ptr<Logger>* result) override { |
|
|
|
|
return target_->NewLogger(fname, result); |
|
|
|
|
} |
|
|
|
@ -1098,10 +1097,10 @@ class WritableFileWrapper : public WritableFile { |
|
|
|
|
return target_->InvalidateCache(offset, length); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
virtual void SetPreallocationBlockSize(size_t size) override { |
|
|
|
|
void SetPreallocationBlockSize(size_t size) override { |
|
|
|
|
target_->SetPreallocationBlockSize(size); |
|
|
|
|
} |
|
|
|
|
virtual void PrepareWrite(size_t offset, size_t len) override { |
|
|
|
|
void PrepareWrite(size_t offset, size_t len) override { |
|
|
|
|
target_->PrepareWrite(offset, len); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|