Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

correct libraries for use in future #1628

Merged
merged 1 commit into from
Feb 6, 2024
Merged
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
3 changes: 2 additions & 1 deletion ydb/core/tx/tiering/rule/object.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once
#include <ydb/core/protos/flat_scheme_op.pb.h>
#include <ydb/core/tx/columnshard/engines/column_engine.h>
#include <ydb/core/tx/columnshard/engines/scheme/tier_info.h>

#include <ydb/services/metadata/abstract/decoder.h>
#include <ydb/services/metadata/service.h>
#include <ydb/services/metadata/manager/object.h>
Expand Down
1 change: 1 addition & 0 deletions ydb/core/tx/tiering/rule/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ PEERDIR(
ydb/services/metadata/abstract
ydb/services/metadata/common
ydb/services/metadata/initializer
ydb/services/metadata/manager
ydb/services/bg_tasks/abstract
ydb/core/tx/schemeshard
)
Expand Down
14 changes: 14 additions & 0 deletions ydb/library/conclusion/result.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,26 @@ class TConclusion {
return *result;
}

TResult& MutableResult() {
auto result = std::get_if<TResult>(&Result);
Y_ABORT_UNLESS(result, "incorrect object for result request");
return *result;
}

TResult&& DetachResult() {
auto result = std::get_if<TResult>(&Result);
Y_ABORT_UNLESS(result, "incorrect object for result request");
return std::move(*result);
}

const TResult* operator->() const {
return &GetResult();
}

TResult* operator->() {
return &MutableResult();
}

const TResult& operator*() const {
return GetResult();
}
Expand Down
2 changes: 2 additions & 0 deletions ydb/services/bg_tasks/abstract/interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,12 @@ class TCommonInterfaceContainer {
}

const IInterface* operator->() const {
AFL_VERIFY(Object);
return Object.get();
}

IInterface* operator->() {
AFL_VERIFY(Object);
return Object.get();
}

Expand Down
Loading