Skip to content

Commit b03bdb2

Browse files
Merge pull request #156 from tencentyun/feature_huberyxxiao_8f8bd447
fix
2 parents 7582f8e + d110b73 commit b03bdb2

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)