mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Fix load failed with DiskANN (#23760)
Signed-off-by: Enwei Jiao <enwei.jiao@zilliz.com>
This commit is contained in:
parent
f289aed63a
commit
66a5efeb3d
@ -78,6 +78,7 @@ MinioChunkManager::InitSDKAPI(RemoteStorageType type) {
|
||||
std::scoped_lock lock{client_mutex_};
|
||||
const size_t initCount = init_count_++;
|
||||
if (initCount == 0) {
|
||||
sdk_options_.httpOptions.installSigPipeHandler = true;
|
||||
Aws::InitAPI(sdk_options_);
|
||||
}
|
||||
}
|
||||
|
||||
@ -143,7 +143,7 @@ class MinioChunkManager : public RemoteChunkManager {
|
||||
const Aws::Client::ClientConfiguration& config);
|
||||
|
||||
private:
|
||||
const Aws::SDKOptions sdk_options_;
|
||||
Aws::SDKOptions sdk_options_;
|
||||
static std::atomic<size_t> init_count_;
|
||||
static std::mutex client_mutex_;
|
||||
std::shared_ptr<Aws::S3::S3Client> client_;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user