aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/upstream/jupiter.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2024-01-31 10:31:00 +0100
committerGitHub <[email protected]>2024-01-31 10:31:00 +0100
commit78968c2e97a5c407a65088aa9861052d80498053 (patch)
tree4fa02e7b9fd0b321b8ed7e4adaa7e06c6527929c /src/zenserver/upstream/jupiter.cpp
parentUpdate README.md (diff)
downloadzen-78968c2e97a5c407a65088aa9861052d80498053.tar.xz
zen-78968c2e97a5c407a65088aa9861052d80498053.zip
improve oplog export logging (#644)
- Improvement: More details in oplog import/export logs - Improvement: Switch from Download to Get when fetching Refs from Jupiter as they can't be resumed anyway and streaming to disk is redundant - Bugfix: Make sure we clear read callback when doing Put in HttpClient to avoid timeout due to not sending data when reusing sessions - Bugfix: Respect `--ignore-missing-attachments` in `oplog-export` command when loose file is missing on disk
Diffstat (limited to 'src/zenserver/upstream/jupiter.cpp')
-rw-r--r--src/zenserver/upstream/jupiter.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/zenserver/upstream/jupiter.cpp b/src/zenserver/upstream/jupiter.cpp
index fe4d31604..c77834657 100644
--- a/src/zenserver/upstream/jupiter.cpp
+++ b/src/zenserver/upstream/jupiter.cpp
@@ -71,18 +71,13 @@ CloudCacheSession::Authenticate()
}
CloudCacheResult
-CloudCacheSession::GetRef(std::string_view Namespace,
- std::string_view BucketId,
- const IoHash& Key,
- ZenContentType RefType,
- std::filesystem::path TempFolderPath)
+CloudCacheSession::GetRef(std::string_view Namespace, std::string_view BucketId, const IoHash& Key, ZenContentType RefType)
{
ZEN_TRACE_CPU("JupiterClient::GetRef");
HttpClient::Response Response =
- m_CacheClient->m_HttpClient.Download(fmt::format("/api/v1/refs/{}/{}/{}", Namespace, BucketId, Key.ToHexString()),
- TempFolderPath,
- {HttpClient::Accept(RefType)});
+ m_CacheClient->m_HttpClient.Get(fmt::format("/api/v1/refs/{}/{}/{}", Namespace, BucketId, Key.ToHexString()),
+ {HttpClient::Accept(RefType)});
return detail::ConvertResponse(Response, "CloudCacheSession::GetRef"sv);
}