Skip to content

Commit 688d527

Browse files
committed
修复 dns cache 并发问题;断点下载路径包含不存在文件夹问题
1 parent b655ff6 commit 688d527

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
@@ -1939,9 +1939,7 @@ CosResult ObjectOp::ResumableGetObject(const GetObjectByFileReq& req,
19391939
return head_result;
19401940
}
19411941

1942-
std::string dir_name = FileUtil::GetDirectory(req.GetLocalFilePath());
1943-
std::string resumable_task_json_file =
1944-
dir_name + "/" + req.GetObjectName() + kResumableDownloadTaskFileSuffix;
1942+
std::string resumable_task_json_file = req.GetLocalFilePath() + kResumableDownloadTaskFileSuffix;
19451943

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

0 commit comments

Comments
 (0)