Fix AWS MinIO

This commit is contained in:
2026-05-01 11:16:47 +10:00
parent c4ec6f0ed2
commit 1c8abf2a88
5 changed files with 536 additions and 29 deletions
+3 -1
View File
@@ -197,7 +197,9 @@ namespace ANSCENTER {
SPDLogger& _logger = SPDLogger::GetInstance("ANSAWSS3", false);
// Pool helpers
std::unique_ptr<S3Connection> CreateConnection();
// logOnFailure=false suppresses error-level logging on failure (still emits ANS_DBG).
// Used by TryConnect's first attempt, which is allowed to fail for path-style/MinIO servers.
std::unique_ptr<S3Connection> CreateConnection(bool logOnFailure = true);
std::unique_ptr<S3Connection> AcquireConnection();
void ReleaseConnection(std::unique_ptr<S3Connection> conn);