Skip to content

Commit d110b73

Browse files
committed
Merge branch 'dev/dev_fix(upload)' into 'master' (merge request !32)
修复 dns cache 并发问题;断点下载路径包含不存在文件夹问题
2 parents b689fab + 688d527 commit d110b73

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

include/util/lru_cache.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class LruCache {
3333
m_entry_map[key] = m_entry_list.begin();
3434
}
3535

36-
const ValueType& Get(const KeyType& key) {
36+
const ValueType Get(const KeyType& key) {
3737
std::lock_guard<std::mutex> lock(m_mutex);
3838
auto it = m_entry_map.find(key);
3939
if (it == m_entry_map.end()) {

src/op/object_op.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2003,9 +2003,7 @@ CosResult ObjectOp::ResumableGetObject(const GetObjectByFileReq& req,
20032003
return head_result;
20042004
}
20052005

2006-
std::string dir_name = FileUtil::GetDirectory(req.GetLocalFilePath());
2007-
std::string resumable_task_json_file =
2008-
dir_name + "/" + req.GetObjectName() + kResumableDownloadTaskFileSuffix;
2006+
std::string resumable_task_json_file = req.GetLocalFilePath() + kResumableDownloadTaskFileSuffix;
20092007

20102008
std::map<std::string, std::string> resume_task_check_element = {
20112009
{kResumableDownloadTaskLastModified, head_resp.GetLastModified()},

0 commit comments

Comments
 (0)