Skip to content
Merged

fix #156

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/util/lru_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class LruCache {
m_entry_map[key] = m_entry_list.begin();
}

const ValueType& Get(const KeyType& key) {
const ValueType Get(const KeyType& key) {
std::lock_guard<std::mutex> lock(m_mutex);
auto it = m_entry_map.find(key);
if (it == m_entry_map.end()) {
Expand Down
4 changes: 1 addition & 3 deletions src/op/object_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2003,9 +2003,7 @@ CosResult ObjectOp::ResumableGetObject(const GetObjectByFileReq& req,
return head_result;
}

std::string dir_name = FileUtil::GetDirectory(req.GetLocalFilePath());
std::string resumable_task_json_file =
dir_name + "/" + req.GetObjectName() + kResumableDownloadTaskFileSuffix;
std::string resumable_task_json_file = req.GetLocalFilePath() + kResumableDownloadTaskFileSuffix;

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