Merge pull request #863 from zhangyybuaa/fix_hdfs_error

Fix build error with hdfs
This commit is contained in:
Igor Canadi 2015-12-22 09:27:51 +01:00
commit 8ac7fb8377
2 changed files with 4 additions and 1 deletions

View File

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

View File

@ -18,6 +18,7 @@
#include <iostream>
#include <sstream>
#include "rocksdb/status.h"
#include "util/string_util.h"
#define HDFS_EXISTS 0
#define HDFS_DOESNT_EXIST -1