forked from ydb-platform/ydb
-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handle s3 errors in GC (ydb-platform#13890)
- Loading branch information
Showing
12 changed files
with
217 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#include "common.h" | ||
|
||
namespace NKikimr::NOlap::NBlobOperations::NTier {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#pragma once | ||
|
||
#include <ydb/core/wrappers/abstract.h> | ||
|
||
#include <ydb/library/actors/core/log.h> | ||
|
||
namespace NKikimr::NOlap::NBlobOperations::NTier { | ||
|
||
class TExternalStorageOperatorHolder { | ||
private: | ||
NWrappers::NExternalStorage::IExternalStorageOperator::TPtr StorageOperator = nullptr; | ||
TAdaptiveLock Mutex; | ||
|
||
public: | ||
void Emplace(const NWrappers::NExternalStorage::IExternalStorageOperator::TPtr& storageOperator) { | ||
TGuard g(Mutex); | ||
StorageOperator = storageOperator; | ||
} | ||
|
||
NWrappers::NExternalStorage::IExternalStorageOperator::TPtr Get() const { | ||
TGuard g(Mutex); | ||
return StorageOperator; | ||
} | ||
}; | ||
|
||
} // namespace NKikimr::NOlap::NBlobOperations::NTier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.