From be006d28874e6d97951e762c26e7c025420f728e Mon Sep 17 00:00:00 2001 From: Zhang Yangyang Date: Wed, 2 Dec 2015 21:46:48 +0800 Subject: [PATCH] fix LinkFile() undefined reference error --- hdfs/env_hdfs.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hdfs/env_hdfs.h b/hdfs/env_hdfs.h index e1e943093..2b83317c0 100644 --- a/hdfs/env_hdfs.h +++ b/hdfs/env_hdfs.h @@ -89,7 +89,9 @@ class HdfsEnv : public Env { virtual Status RenameFile(const std::string& src, const std::string& target); - virtual Status LinkFile(const std::string& src, const std::string& target); + virtual Status LinkFile(const std::string& src, const std::string& target) { + return Status::NotSupported(); // not supported + } virtual Status LockFile(const std::string& fname, FileLock** lock);