Skip to content

Commit 4c7eca6

Browse files
committed
fix issues #1
1 parent dbf26c5 commit 4c7eca6

File tree

8 files changed

+1
-331
lines changed

8 files changed

+1
-331
lines changed

ydb/public/lib/ydb_cli/commands/ydb_dynamic_config.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ int TCommandConfigReplace::Run(TConfig& config) {
215215

216216
auto status = client.ReplaceConfig(DynamicConfig, settings).GetValueSync();
217217

218-
if (status.IsUnimplementedError()) {
218+
if (status.GetStatus() == EStatus::CLIENT_CALL_UNIMPLEMENTED) {
219219
Cerr << "Warning: Fallback to DynamicConfig API" << Endl;
220220

221221
auto client = NYdb::NDynamicConfig::TDynamicConfigClient(*driver);

ydb/public/sdk/cpp/client/ydb_config/ya.make

Lines changed: 0 additions & 14 deletions
This file was deleted.

ydb/public/sdk/cpp/client/ydb_config/ydb_config.cpp

Lines changed: 0 additions & 182 deletions
This file was deleted.

ydb/public/sdk/cpp/client/ydb_config/ydb_config.h

Lines changed: 0 additions & 124 deletions
This file was deleted.

ydb/public/sdk/cpp/client/ydb_types/status/status.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ void TStatus::CheckStatusOk(const TStringType& str) const {
5656
Impl_->CheckStatusOk(str);
5757
}
5858

59-
bool TStatus::IsUnimplementedError() const {
60-
return Impl_->Status.Status == EStatus::CLIENT_CALL_UNIMPLEMENTED;
61-
}
62-
6359
void TStatus::RaiseError(const TStringType& str) const {
6460
Impl_->RaiseError(str);
6561
}

ydb/public/sdk/cpp/client/ydb_types/status/status.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ class TStatus {
2626
const NYql::TIssues& GetIssues() const;
2727
bool IsSuccess() const;
2828
bool IsTransportError() const;
29-
bool IsUnimplementedError() const;
3029
const TStringType& GetEndpoint() const;
3130
const std::multimap<TStringType, TStringType>& GetResponseMetadata() const;
3231
float GetConsumedRu() const;

ydb/public/sdk/cpp/include/ydb-cpp-sdk/client/types/status/status.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ class TStatus {
2525
const NYdb::NIssue::TIssues& GetIssues() const;
2626
bool IsSuccess() const;
2727
bool IsTransportError() const;
28-
bool IsUnimplementedError() const;
2928
const std::string& GetEndpoint() const;
3029
const std::multimap<std::string, std::string>& GetResponseMetadata() const;
3130
float GetConsumedRu() const;

ydb/public/sdk/cpp/src/client/types/status/status.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ bool TStatus::IsTransportError() const {
5454
&& static_cast<size_t>(Impl_->Status.Status) <= TRANSPORT_STATUSES_LAST;
5555
}
5656

57-
bool TStatus::IsUnimplementedError() const {
58-
return Impl_->Status.Status == EStatus::CLIENT_CALL_UNIMPLEMENTED;
59-
}
60-
6157
void TStatus::CheckStatusOk(const std::string& str) const {
6258
Impl_->CheckStatusOk(str);
6359
}

0 commit comments

Comments
 (0)