File tree Expand file tree Collapse file tree 8 files changed +1
-331
lines changed
include/ydb-cpp-sdk/client/types/status Expand file tree Collapse file tree 8 files changed +1
-331
lines changed Original file line number Diff line number Diff 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);
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff 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-
6359void TStatus::RaiseError (const TStringType& str) const {
6460 Impl_->RaiseError (str);
6561}
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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-
6157void TStatus::CheckStatusOk (const std::string& str) const {
6258 Impl_->CheckStatusOk (str);
6359}
You can’t perform that action at this time.
0 commit comments