Skip to content

Commit

Permalink
Merge pull request facebook#863 from zhangyybuaa/fix_hdfs_error
Browse files Browse the repository at this point in the history
Fix build error with hdfs
  • Loading branch information
igorcanadi committed Dec 22, 2015
2 parents e53e821 + be006d2 commit 8ac7fb8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hdfs/env_hdfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
1 change: 1 addition & 0 deletions util/env_hdfs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8ac7fb8

Please sign in to comment.