Merge pull request #856 from ceph/wip-env

EnvWrapper: add ReuseWritableFile
This commit is contained in:
Igor Canadi 2015-11-25 11:38:09 -08:00
commit f3ea00bc85

View File

@ -768,6 +768,12 @@ class EnvWrapper : public Env {
const EnvOptions& options) override {
return target_->NewWritableFile(f, r, options);
}
Status ReuseWritableFile(const std::string& fname,
const std::string& old_fname,
unique_ptr<WritableFile>* r,
const EnvOptions& options) {
return target_->ReuseWritableFile(fname, old_fname, r, options);
}
virtual Status NewDirectory(const std::string& name,
unique_ptr<Directory>* result) override {
return target_->NewDirectory(name, result);