File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1428,17 +1428,17 @@ TEST_F(CloudTest, CopyObjectTest) {
14281428
14291429 std::string content = " This is a test file" ;
14301430 std::string fname = dbname_ + " /100000.sst" ;
1431- std::string dst_fname = dbname_ + " /200000.sst" ;
1431+ std::string dst_fname = aenv_-> GetSrcObjectPath () + " /200000.sst" ;
14321432
14331433 {
14341434 std::unique_ptr<WritableFile> writableFile;
14351435 aenv_->NewWritableFile (fname, &writableFile, EnvOptions ());
14361436 writableFile->Append (content);
14371437 writableFile->Fsync ();
14381438 }
1439-
1439+ auto remapped = basename (aenv_-> RemapFilename (fname));
14401440 Status st = aenv_->GetCloudEnvOptions ().storage_provider ->CopyCloudObject (
1441- aenv_->GetSrcBucketName (), aenv_->RemapFilename (fname) ,
1441+ aenv_->GetSrcBucketName (), aenv_->GetSrcObjectPath () + " / " + remapped ,
14421442 aenv_->GetSrcBucketName (), dst_fname);
14431443 ASSERT_OK (st);
14441444
You can’t perform that action at this time.
0 commit comments