File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -1440,6 +1440,14 @@ Status AwsEnv::RenameFile(const std::string& logical_src,
14401440 return st;
14411441}
14421442
1443+ Status AwsEnv::LinkFile (const std::string& src, const std::string& target) {
1444+ // We only know how to link file if both src and dest buckets are empty
1445+ if (has_dest_bucket_ || has_src_bucket_) {
1446+ return Status::NotSupported ();
1447+ }
1448+ return base_env_->LinkFile (src, target);
1449+ }
1450+
14431451//
14441452// Copy my IDENTITY file to cloud storage. Update dbid registry.
14451453//
Original file line number Diff line number Diff line change @@ -155,10 +155,8 @@ class AwsEnv : public CloudEnvImpl {
155155 virtual Status RenameFile (const std::string& src,
156156 const std::string& target) override ;
157157
158- virtual Status LinkFile (const std::string& /* src*/ ,
159- const std::string& /* target*/ ) override {
160- return Status::NotSupported (); // not supported
161- }
158+ virtual Status LinkFile (const std::string& src,
159+ const std::string& target) override ;
162160
163161 virtual Status LockFile (const std::string& fname, FileLock** lock) override ;
164162
You can’t perform that action at this time.
0 commit comments