From 7ec71f101c30381af1d1dda6711e28debaa11809 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Fri, 21 Nov 2014 11:05:48 -0500 Subject: [PATCH] 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 --- include/rocksdb/env.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/rocksdb/env.h b/include/rocksdb/env.h index 291676002..aded546ca 100644 --- a/include/rocksdb/env.h +++ b/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