Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyongqing committed Oct 10, 2020
1 parent 01666e6 commit 19dc9c6
Show file tree
Hide file tree
Showing 2 changed files with 520 additions and 520 deletions.
2 changes: 1 addition & 1 deletion src/fdcache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1632,7 +1632,7 @@ int FdEntity::UploadPendingMeta()
AutoLock auto_lock(&fdent_lock);

headers_t updatemeta = orgmeta;
updatemeta["x-cos-copy-source"] = urlEncode(service_path + bucket + get_realpath(path.c_str()));
updatemeta["x-cos-copy-source"] = urlEncode(service_path + bucket + "-" + appid + get_realpath(path.c_str()));
// put headers, no need to update mtime to avoid dead lock
int result = put_headers(path.c_str(), updatemeta, true, false);
if(0 != result){
Expand Down
Loading

0 comments on commit 19dc9c6

Please sign in to comment.