From 4687ced5db183eb0634bf07a9dc953ec8a1526a9 Mon Sep 17 00:00:00 2001 From: Zhang Yangyang Date: Wed, 2 Dec 2015 21:45:28 +0800 Subject: [PATCH 1/2] fix ToString() not declared error --- util/env_hdfs.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/util/env_hdfs.cc b/util/env_hdfs.cc index 30e796245..e7844e8dc 100644 --- a/util/env_hdfs.cc +++ b/util/env_hdfs.cc @@ -18,6 +18,7 @@ #include #include #include "rocksdb/status.h" +#include "util/string_util.h" #define HDFS_EXISTS 0 #define HDFS_DOESNT_EXIST -1 From be006d28874e6d97951e762c26e7c025420f728e Mon Sep 17 00:00:00 2001 From: Zhang Yangyang Date: Wed, 2 Dec 2015 21:46:48 +0800 Subject: [PATCH 2/2] 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);