Merge pull request #856 from ceph/wip-env

EnvWrapper: add ReuseWritableFile
main
Igor Canadi 9 years ago
commit f3ea00bc85
  1. 6
      include/rocksdb/env.h

@ -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);

Loading…
Cancel
Save