Provide default implementation of LinkFile, don't break the build

Summary: By providing default implementation of LinkFile, we don't break other implementations of Env.

Test Plan: none

Reviewers: rven, dhruba

Reviewed By: dhruba

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D29355
main
Igor Canadi 10 years ago
parent cd278584c9
commit 7ec71f101c
  1. 5
      include/rocksdb/env.h

@ -179,8 +179,9 @@ class Env {
const std::string& target) = 0;
// Hard Link file src to target.
virtual Status LinkFile(const std::string& src,
const std::string& target) = 0;
virtual Status LinkFile(const std::string& src, const std::string& target) {
return Status::NotSupported("LinkFile is not supported for this Env");
}
// Lock the specified file. Used to prevent concurrent access to
// the same db by multiple processes. On failure, stores nullptr in

Loading…
Cancel
Save