YugabyteDB (2.13.1.0-b60, 21121d69985fbf76aa6958d8f04a9bfa936293b5)

Coverage Report

Created: 2022-03-22 16:43

/Users/deen/code/yugabyte-db/src/yb/client/client_master_rpc.h
Line
Count
Source
1
// Copyright (c) YugaByte, Inc.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
4
// in compliance with the License.  You may obtain a copy of the License at
5
//
6
// http://www.apache.org/licenses/LICENSE-2.0
7
//
8
// Unless required by applicable law or agreed to in writing, software distributed under the License
9
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
10
// or implied.  See the License for the specific language governing permissions and limitations
11
// under the License.
12
//
13
14
#ifndef YB_CLIENT_CLIENT_MASTER_RPC_H
15
#define YB_CLIENT_CLIENT_MASTER_RPC_H
16
17
#include "yb/client/client.h"
18
#include "yb/client/client-internal.h"
19
20
#include "yb/master/master_fwd.h"
21
#include "yb/master/master_error.h"
22
23
#include "yb/rpc/rpc.h"
24
25
namespace yb {
26
namespace client {
27
namespace internal {
28
29
class ClientMasterRpcBase : public rpc::Rpc {
30
 public:
31
  ClientMasterRpcBase(YBClient::Data* client_data, CoarseTimePoint deadline);
32
33
  ClientMasterRpcBase(YBClient* client, CoarseTimePoint deadline)
34
347k
      : ClientMasterRpcBase(client->data_.get(), deadline) {}
35
36
583k
  virtual ~ClientMasterRpcBase() = default;
37
38
  void SendRpc() override;
39
40
583k
  rpc::Rpcs::Handle* RpcHandle() {
41
583k
    return &retained_self_;
42
583k
  }
43
44
448k
  virtual bool ShouldRetry(const Status& status) {
45
448k
    return false;
46
448k
  }
47
48
 protected:
49
  template <class Proxy>
50
236k
  std::shared_ptr<Proxy> master_proxy() {
51
236k
    return master_proxy_helper(static_cast<const Proxy*>(nullptr));
52
236k
  }
std::__1::shared_ptr<yb::master::MasterDdlProxy> yb::client::internal::ClientMasterRpcBase::master_proxy<yb::master::MasterDdlProxy>()
Line
Count
Source
50
91.1k
  std::shared_ptr<Proxy> master_proxy() {
51
91.1k
    return master_proxy_helper(static_cast<const Proxy*>(nullptr));
52
91.1k
  }
std::__1::shared_ptr<yb::master::MasterAdminProxy> yb::client::internal::ClientMasterRpcBase::master_proxy<yb::master::MasterAdminProxy>()
Line
Count
Source
50
31
  std::shared_ptr<Proxy> master_proxy() {
51
31
    return master_proxy_helper(static_cast<const Proxy*>(nullptr));
52
31
  }
std::__1::shared_ptr<yb::master::MasterClientProxy> yb::client::internal::ClientMasterRpcBase::master_proxy<yb::master::MasterClientProxy>()
Line
Count
Source
50
11.2k
  std::shared_ptr<Proxy> master_proxy() {
51
11.2k
    return master_proxy_helper(static_cast<const Proxy*>(nullptr));
52
11.2k
  }
std::__1::shared_ptr<yb::master::MasterClusterProxy> yb::client::internal::ClientMasterRpcBase::master_proxy<yb::master::MasterClusterProxy>()
Line
Count
Source
50
8.86k
  std::shared_ptr<Proxy> master_proxy() {
51
8.86k
    return master_proxy_helper(static_cast<const Proxy*>(nullptr));
52
8.86k
  }
std::__1::shared_ptr<yb::master::MasterDclProxy> yb::client::internal::ClientMasterRpcBase::master_proxy<yb::master::MasterDclProxy>()
Line
Count
Source
50
119k
  std::shared_ptr<Proxy> master_proxy() {
51
119k
    return master_proxy_helper(static_cast<const Proxy*>(nullptr));
52
119k
  }
std::__1::shared_ptr<yb::master::MasterReplicationProxy> yb::client::internal::ClientMasterRpcBase::master_proxy<yb::master::MasterReplicationProxy>()
Line
Count
Source
50
5.49k
  std::shared_ptr<Proxy> master_proxy() {
51
5.49k
    return master_proxy_helper(static_cast<const Proxy*>(nullptr));
52
5.49k
  }
53
54
37
  std::shared_ptr<master::MasterAdminProxy> master_admin_proxy() {
55
37
    return client_data_->master_admin_proxy();
56
37
  }
57
58
31
  auto master_proxy_helper(const master::MasterAdminProxy*) {
59
31
    return master_admin_proxy();
60
31
  }
61
62
8.86k
  std::shared_ptr<master::MasterClusterProxy> master_cluster_proxy() {
63
8.86k
    return client_data_->master_cluster_proxy();
64
8.86k
  }
65
66
8.86k
  auto master_proxy_helper(const master::MasterClusterProxy*) {
67
8.86k
    return master_cluster_proxy();
68
8.86k
  }
69
70
119k
  std::shared_ptr<master::MasterDclProxy> master_dcl_proxy() {
71
119k
    return client_data_->master_dcl_proxy();
72
119k
  }
73
74
119k
  auto master_proxy_helper(const master::MasterDclProxy*) {
75
119k
    return master_dcl_proxy();
76
119k
  }
77
78
234k
  std::shared_ptr<master::MasterDdlProxy> master_ddl_proxy() {
79
234k
    return client_data_->master_ddl_proxy();
80
234k
  }
81
82
91.1k
  auto master_proxy_helper(const master::MasterDdlProxy*) {
83
91.1k
    return master_ddl_proxy();
84
91.1k
  }
85
86
224k
  std::shared_ptr<master::MasterClientProxy> master_client_proxy() {
87
224k
    return client_data_->master_client_proxy();
88
224k
  }
89
90
11.2k
  auto master_proxy_helper(const master::MasterClientProxy*) {
91
11.2k
    return master_client_proxy();
92
11.2k
  }
93
94
5.49k
  std::shared_ptr<master::MasterReplicationProxy> master_replication_proxy() {
95
5.49k
    return client_data_->master_replication_proxy();
96
5.49k
  }
97
98
5.49k
  auto master_proxy_helper(const master::MasterReplicationProxy*) {
99
5.49k
    return master_replication_proxy();
100
5.49k
  }
101
102
  virtual void CallRemoteMethod() = 0;
103
104
  virtual void ProcessResponse(const Status& status) = 0;
105
106
  virtual Status ResponseStatus() = 0;
107
108
  void ResetMasterLeader(Retry retry);
109
110
  void NewLeaderMasterDeterminedCb(const Status& status);
111
112
  void Finished(const Status& status) override;
113
114
  std::string LogPrefix() const;
115
116
 private:
117
  YBClient::Data* const client_data_;
118
  rpc::Rpcs::Handle retained_self_;
119
};
120
121
template <class Resp>
122
593k
Status StatusFromResp(const Resp& resp) {
123
593k
  if (!resp.has_error()) {
124
578k
    return Status::OK();
125
578k
  }
126
15.5k
  auto result = StatusFromPB(resp.error().status());
127
15.5k
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
15.5k
      
master::MasterError(result) != resp.error().code()15.4k
) {
129
10.7k
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
10.7k
  }
131
15.5k
  return result;
132
593k
}
yb::Status yb::client::internal::StatusFromResp<yb::master::AlterNamespaceResponsePB>(yb::master::AlterNamespaceResponsePB const&)
Line
Count
Source
122
3
Status StatusFromResp(const Resp& resp) {
123
3
  if (!resp.has_error()) {
124
3
    return Status::OK();
125
3
  }
126
0
  auto result = StatusFromPB(resp.error().status());
127
0
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
0
      master::MasterError(result) != resp.error().code()) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
0
  return result;
132
3
}
yb::Status yb::client::internal::StatusFromResp<yb::master::AlterTableResponsePB>(yb::master::AlterTableResponsePB const&)
Line
Count
Source
122
700
Status StatusFromResp(const Resp& resp) {
123
700
  if (!resp.has_error()) {
124
698
    return Status::OK();
125
698
  }
126
2
  auto result = StatusFromPB(resp.error().status());
127
2
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
2
      
master::MasterError(result) != resp.error().code()0
) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
2
  return result;
132
700
}
yb::Status yb::client::internal::StatusFromResp<yb::master::BackfillIndexResponsePB>(yb::master::BackfillIndexResponsePB const&)
Line
Count
Source
122
540
Status StatusFromResp(const Resp& resp) {
123
540
  if (!resp.has_error()) {
124
540
    return Status::OK();
125
540
  }
126
0
  auto result = StatusFromPB(resp.error().status());
127
0
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
0
      master::MasterError(result) != resp.error().code()) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
0
  return result;
132
540
}
yb::Status yb::client::internal::StatusFromResp<yb::master::ChangeMasterClusterConfigResponsePB>(yb::master::ChangeMasterClusterConfigResponsePB const&)
Line
Count
Source
122
4
Status StatusFromResp(const Resp& resp) {
123
4
  if (!resp.has_error()) {
124
4
    return Status::OK();
125
4
  }
126
0
  auto result = StatusFromPB(resp.error().status());
127
0
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
0
      master::MasterError(result) != resp.error().code()) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
0
  return result;
132
4
}
yb::Status yb::client::internal::StatusFromResp<yb::master::CreateNamespaceResponsePB>(yb::master::CreateNamespaceResponsePB const&)
Line
Count
Source
122
2.10k
Status StatusFromResp(const Resp& resp) {
123
2.10k
  if (!resp.has_error()) {
124
2.09k
    return Status::OK();
125
2.09k
  }
126
4
  auto result = StatusFromPB(resp.error().status());
127
4
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
4
      master::MasterError(result) != resp.error().code()) {
129
4
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
4
  }
131
4
  return result;
132
2.10k
}
yb::Status yb::client::internal::StatusFromResp<yb::master::CreateTableResponsePB>(yb::master::CreateTableResponsePB const&)
Line
Count
Source
122
7.01k
Status StatusFromResp(const Resp& resp) {
123
7.01k
  if (!resp.has_error()) {
124
6.99k
    return Status::OK();
125
6.99k
  }
126
26
  auto result = StatusFromPB(resp.error().status());
127
26
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
26
      
master::MasterError(result) != resp.error().code()13
) {
129
9
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
9
  }
131
26
  return result;
132
7.01k
}
yb::Status yb::client::internal::StatusFromResp<yb::master::CreateTablegroupResponsePB>(yb::master::CreateTablegroupResponsePB const&)
Line
Count
Source
122
55
Status StatusFromResp(const Resp& resp) {
123
55
  if (!resp.has_error()) {
124
53
    return Status::OK();
125
53
  }
126
2
  auto result = StatusFromPB(resp.error().status());
127
2
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
2
      
master::MasterError(result) != resp.error().code()0
) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
2
  return result;
132
55
}
yb::Status yb::client::internal::StatusFromResp<yb::master::CreateUDTypeResponsePB>(yb::master::CreateUDTypeResponsePB const&)
Line
Count
Source
122
47
Status StatusFromResp(const Resp& resp) {
123
47
  if (!resp.has_error()) {
124
46
    return Status::OK();
125
46
  }
126
1
  auto result = StatusFromPB(resp.error().status());
127
1
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
1
      master::MasterError(result) != resp.error().code()) {
129
1
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
1
  }
131
1
  return result;
132
47
}
yb::Status yb::client::internal::StatusFromResp<yb::master::DeleteNamespaceResponsePB>(yb::master::DeleteNamespaceResponsePB const&)
Line
Count
Source
122
1.60k
Status StatusFromResp(const Resp& resp) {
123
1.60k
  if (!resp.has_error()) {
124
1.60k
    return Status::OK();
125
1.60k
  }
126
2
  auto result = StatusFromPB(resp.error().status());
127
2
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
2
      master::MasterError(result) != resp.error().code()) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
2
  return result;
132
1.60k
}
yb::Status yb::client::internal::StatusFromResp<yb::master::DeleteTableResponsePB>(yb::master::DeleteTableResponsePB const&)
Line
Count
Source
122
5.48k
Status StatusFromResp(const Resp& resp) {
123
5.48k
  if (!resp.has_error()) {
124
5.46k
    return Status::OK();
125
5.46k
  }
126
23
  auto result = StatusFromPB(resp.error().status());
127
23
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
23
      
master::MasterError(result) != resp.error().code()19
) {
129
2
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
2
  }
131
23
  return result;
132
5.48k
}
yb::Status yb::client::internal::StatusFromResp<yb::master::DeleteTablegroupResponsePB>(yb::master::DeleteTablegroupResponsePB const&)
Line
Count
Source
122
39
Status StatusFromResp(const Resp& resp) {
123
39
  if (!resp.has_error()) {
124
39
    return Status::OK();
125
39
  }
126
0
  auto result = StatusFromPB(resp.error().status());
127
0
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
0
      master::MasterError(result) != resp.error().code()) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
0
  return result;
132
39
}
yb::Status yb::client::internal::StatusFromResp<yb::master::DeleteUDTypeResponsePB>(yb::master::DeleteUDTypeResponsePB const&)
Line
Count
Source
122
54
Status StatusFromResp(const Resp& resp) {
123
54
  if (!resp.has_error()) {
124
46
    return Status::OK();
125
46
  }
126
8
  auto result = StatusFromPB(resp.error().status());
127
8
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
8
      master::MasterError(result) != resp.error().code()) {
129
8
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
8
  }
131
8
  return result;
132
54
}
yb::Status yb::client::internal::StatusFromResp<yb::master::FlushTablesResponsePB>(yb::master::FlushTablesResponsePB const&)
Line
Count
Source
122
10
Status StatusFromResp(const Resp& resp) {
123
10
  if (!resp.has_error()) {
124
10
    return Status::OK();
125
10
  }
126
0
  auto result = StatusFromPB(resp.error().status());
127
0
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
0
      master::MasterError(result) != resp.error().code()) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
0
  return result;
132
10
}
Unexecuted instantiation: yb::Status yb::client::internal::StatusFromResp<yb::master::GetTablegroupSchemaResponsePB>(yb::master::GetTablegroupSchemaResponsePB const&)
Unexecuted instantiation: yb::Status yb::client::internal::StatusFromResp<yb::master::GetColocatedTabletSchemaResponsePB>(yb::master::GetColocatedTabletSchemaResponsePB const&)
yb::Status yb::client::internal::StatusFromResp<yb::master::GetMasterClusterConfigResponsePB>(yb::master::GetMasterClusterConfigResponsePB const&)
Line
Count
Source
122
6
Status StatusFromResp(const Resp& resp) {
123
6
  if (!resp.has_error()) {
124
6
    return Status::OK();
125
6
  }
126
0
  auto result = StatusFromPB(resp.error().status());
127
0
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
0
      master::MasterError(result) != resp.error().code()) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
0
  return result;
132
6
}
yb::Status yb::client::internal::StatusFromResp<yb::master::GetNamespaceInfoResponsePB>(yb::master::GetNamespaceInfoResponsePB const&)
Line
Count
Source
122
6.03k
Status StatusFromResp(const Resp& resp) {
123
6.03k
  if (!resp.has_error()) {
124
6.03k
    return Status::OK();
125
6.03k
  }
126
2
  auto result = StatusFromPB(resp.error().status());
127
2
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
2
      master::MasterError(result) != resp.error().code()) {
129
1
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
1
  }
131
2
  return result;
132
6.03k
}
yb::Status yb::client::internal::StatusFromResp<yb::master::GetTableSchemaResponsePB>(yb::master::GetTableSchemaResponsePB const&)
Line
Count
Source
122
143k
Status StatusFromResp(const Resp& resp) {
123
143k
  if (!resp.has_error()) {
124
140k
    return Status::OK();
125
140k
  }
126
2.57k
  auto result = StatusFromPB(resp.error().status());
127
2.57k
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
2.59k
      master::MasterError(result) != resp.error().code()) {
129
7
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
7
  }
131
2.57k
  return result;
132
143k
}
yb::Status yb::client::internal::StatusFromResp<yb::master::GetUDTypeInfoResponsePB>(yb::master::GetUDTypeInfoResponsePB const&)
Line
Count
Source
122
56
Status StatusFromResp(const Resp& resp) {
123
56
  if (!resp.has_error()) {
124
49
    return Status::OK();
125
49
  }
126
7
  auto result = StatusFromPB(resp.error().status());
127
7
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
7
      master::MasterError(result) != resp.error().code()) {
129
7
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
7
  }
131
7
  return result;
132
56
}
yb::Status yb::client::internal::StatusFromResp<yb::master::IsAlterTableDoneResponsePB>(yb::master::IsAlterTableDoneResponsePB const&)
Line
Count
Source
122
1.39k
Status StatusFromResp(const Resp& resp) {
123
1.39k
  if (!resp.has_error()) {
124
1.39k
    return Status::OK();
125
1.39k
  }
126
0
  auto result = StatusFromPB(resp.error().status());
127
0
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
0
      master::MasterError(result) != resp.error().code()) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
0
  return result;
132
1.39k
}
yb::Status yb::client::internal::StatusFromResp<yb::master::IsCreateNamespaceDoneResponsePB>(yb::master::IsCreateNamespaceDoneResponsePB const&)
Line
Count
Source
122
3.46k
Status StatusFromResp(const Resp& resp) {
123
3.46k
  if (!resp.has_error()) {
124
3.46k
    return Status::OK();
125
3.46k
  }
126
1
  auto result = StatusFromPB(resp.error().status());
127
1
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
1
      
master::MasterError(result) != resp.error().code()0
) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
1
  return result;
132
3.46k
}
yb::Status yb::client::internal::StatusFromResp<yb::master::IsCreateTableDoneResponsePB>(yb::master::IsCreateTableDoneResponsePB const&)
Line
Count
Source
122
28.7k
Status StatusFromResp(const Resp& resp) {
123
28.7k
  if (!resp.has_error()) {
124
28.6k
    return Status::OK();
125
28.6k
  }
126
122
  auto result = StatusFromPB(resp.error().status());
127
122
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
122
      
master::MasterError(result) != resp.error().code()87
) {
129
2
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
2
  }
131
122
  return result;
132
28.7k
}
yb::Status yb::client::internal::StatusFromResp<yb::master::IsDeleteNamespaceDoneResponsePB>(yb::master::IsDeleteNamespaceDoneResponsePB const&)
Line
Count
Source
122
1.67k
Status StatusFromResp(const Resp& resp) {
123
1.67k
  if (!resp.has_error()) {
124
1.67k
    return Status::OK();
125
1.67k
  }
126
0
  auto result = StatusFromPB(resp.error().status());
127
0
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
0
      master::MasterError(result) != resp.error().code()) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
0
  return result;
132
1.67k
}
yb::Status yb::client::internal::StatusFromResp<yb::master::IsDeleteTableDoneResponsePB>(yb::master::IsDeleteTableDoneResponsePB const&)
Line
Count
Source
122
11.7k
Status StatusFromResp(const Resp& resp) {
123
11.7k
  if (!resp.has_error()) {
124
11.6k
    return Status::OK();
125
11.6k
  }
126
106
  auto result = StatusFromPB(resp.error().status());
127
106
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
106
      master::MasterError(result) != resp.error().code()) {
129
106
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
106
  }
131
106
  return result;
132
11.7k
}
yb::Status yb::client::internal::StatusFromResp<yb::master::IsFlushTablesDoneResponsePB>(yb::master::IsFlushTablesDoneResponsePB const&)
Line
Count
Source
122
21
Status StatusFromResp(const Resp& resp) {
123
21
  if (!resp.has_error()) {
124
21
    return Status::OK();
125
21
  }
126
0
  auto result = StatusFromPB(resp.error().status());
127
0
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
0
      master::MasterError(result) != resp.error().code()) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
0
  return result;
132
21
}
yb::Status yb::client::internal::StatusFromResp<yb::master::IsTruncateTableDoneResponsePB>(yb::master::IsTruncateTableDoneResponsePB const&)
Line
Count
Source
122
10.5k
Status StatusFromResp(const Resp& resp) {
123
10.5k
  if (!resp.has_error()) {
124
10.5k
    return Status::OK();
125
10.5k
  }
126
0
  auto result = StatusFromPB(resp.error().status());
127
0
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
0
      master::MasterError(result) != resp.error().code()) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
0
  return result;
132
10.5k
}
yb::Status yb::client::internal::StatusFromResp<yb::master::ListNamespacesResponsePB>(yb::master::ListNamespacesResponsePB const&)
Line
Count
Source
122
5.08k
Status StatusFromResp(const Resp& resp) {
123
5.08k
  if (!resp.has_error()) {
124
5.08k
    return Status::OK();
125
5.08k
  }
126
0
  auto result = StatusFromPB(resp.error().status());
127
0
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
0
      master::MasterError(result) != resp.error().code()) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
0
  return result;
132
5.08k
}
yb::Status yb::client::internal::StatusFromResp<yb::master::ListTablegroupsResponsePB>(yb::master::ListTablegroupsResponsePB const&)
Line
Count
Source
122
5
Status StatusFromResp(const Resp& resp) {
123
5
  if (!resp.has_error()) {
124
5
    return Status::OK();
125
5
  }
126
0
  auto result = StatusFromPB(resp.error().status());
127
0
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
0
      master::MasterError(result) != resp.error().code()) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
0
  return result;
132
5
}
yb::Status yb::client::internal::StatusFromResp<yb::master::ListTablesResponsePB>(yb::master::ListTablesResponsePB const&)
Line
Count
Source
122
871
Status StatusFromResp(const Resp& resp) {
123
871
  if (!resp.has_error()) {
124
871
    return Status::OK();
125
871
  }
126
0
  auto result = StatusFromPB(resp.error().status());
127
0
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
0
      master::MasterError(result) != resp.error().code()) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
0
  return result;
132
871
}
Unexecuted instantiation: yb::Status yb::client::internal::StatusFromResp<yb::master::ListUDTypesResponsePB>(yb::master::ListUDTypesResponsePB const&)
yb::Status yb::client::internal::StatusFromResp<yb::master::TruncateTableResponsePB>(yb::master::TruncateTableResponsePB const&)
Line
Count
Source
122
3.79k
Status StatusFromResp(const Resp& resp) {
123
3.79k
  if (!resp.has_error()) {
124
3.79k
    return Status::OK();
125
3.79k
  }
126
0
  auto result = StatusFromPB(resp.error().status());
127
0
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
0
      master::MasterError(result) != resp.error().code()) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
0
  return result;
132
3.79k
}
yb::Status yb::client::internal::StatusFromResp<yb::master::ValidateReplicationInfoResponsePB>(yb::master::ValidateReplicationInfoResponsePB const&)
Line
Count
Source
122
1
Status StatusFromResp(const Resp& resp) {
123
1
  if (!resp.has_error()) {
124
0
    return Status::OK();
125
0
  }
126
1
  auto result = StatusFromPB(resp.error().status());
127
1
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
1
      master::MasterError(result) != resp.error().code()) {
129
1
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
1
  }
131
1
  return result;
132
1
}
Unexecuted instantiation: yb::Status yb::client::internal::StatusFromResp<yb::master::CreateTransactionStatusTableResponsePB>(yb::master::CreateTransactionStatusTableResponsePB const&)
yb::Status yb::client::internal::StatusFromResp<yb::master::GetTableLocationsResponsePB>(yb::master::GetTableLocationsResponsePB const&)
Line
Count
Source
122
204k
Status StatusFromResp(const Resp& resp) {
123
204k
  if (!resp.has_error()) {
124
194k
    return Status::OK();
125
194k
  }
126
9.81k
  auto result = StatusFromPB(resp.error().status());
127
9.81k
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
9.81k
      
master::MasterError(result) != resp.error().code()9.78k
) {
129
9.53k
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
9.53k
  }
131
9.81k
  return result;
132
204k
}
yb::Status yb::client::internal::StatusFromResp<yb::master::GetTabletLocationsResponsePB>(yb::master::GetTabletLocationsResponsePB const&)
Line
Count
Source
122
15.1k
Status StatusFromResp(const Resp& resp) {
123
15.1k
  if (!resp.has_error()) {
124
15.1k
    return Status::OK();
125
15.1k
  }
126
41
  auto result = StatusFromPB(resp.error().status());
127
41
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
41
      
master::MasterError(result) != resp.error().code()29
) {
129
28
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
28
  }
131
41
  return result;
132
15.1k
}
yb::Status yb::client::internal::StatusFromResp<yb::master::GetTransactionStatusTabletsResponsePB>(yb::master::GetTransactionStatusTabletsResponsePB const&)
Line
Count
Source
122
3.30k
Status StatusFromResp(const Resp& resp) {
123
3.30k
  if (!resp.has_error()) {
124
3.29k
    return Status::OK();
125
3.29k
  }
126
19
  auto result = StatusFromPB(resp.error().status());
127
19
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
19
      
master::MasterError(result) != resp.error().code()0
) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
19
  return result;
132
3.30k
}
yb::Status yb::client::internal::StatusFromResp<yb::master::GetYsqlCatalogConfigResponsePB>(yb::master::GetYsqlCatalogConfigResponsePB const&)
Line
Count
Source
122
22
Status StatusFromResp(const Resp& resp) {
123
22
  if (!resp.has_error()) {
124
22
    return Status::OK();
125
22
  }
126
0
  auto result = StatusFromPB(resp.error().status());
127
0
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
0
      master::MasterError(result) != resp.error().code()) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
0
  return result;
132
22
}
yb::Status yb::client::internal::StatusFromResp<yb::master::RedisConfigGetResponsePB>(yb::master::RedisConfigGetResponsePB const&)
Line
Count
Source
122
1.17k
Status StatusFromResp(const Resp& resp) {
123
1.17k
  if (!resp.has_error()) {
124
355
    return Status::OK();
125
355
  }
126
821
  auto result = StatusFromPB(resp.error().status());
127
821
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
821
      master::MasterError(result) != resp.error().code()) {
129
821
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
821
  }
131
821
  return result;
132
1.17k
}
yb::Status yb::client::internal::StatusFromResp<yb::master::RedisConfigSetResponsePB>(yb::master::RedisConfigSetResponsePB const&)
Line
Count
Source
122
182
Status StatusFromResp(const Resp& resp) {
123
182
  if (!resp.has_error()) {
124
182
    return Status::OK();
125
182
  }
126
0
  auto result = StatusFromPB(resp.error().status());
127
0
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
0
      master::MasterError(result) != resp.error().code()) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
0
  return result;
132
182
}
yb::Status yb::client::internal::StatusFromResp<yb::master::ReservePgsqlOidsResponsePB>(yb::master::ReservePgsqlOidsResponsePB const&)
Line
Count
Source
122
805
Status StatusFromResp(const Resp& resp) {
123
805
  if (!resp.has_error()) {
124
805
    return Status::OK();
125
805
  }
126
0
  auto result = StatusFromPB(resp.error().status());
127
0
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
0
      master::MasterError(result) != resp.error().code()) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
0
  return result;
132
805
}
yb::Status yb::client::internal::StatusFromResp<yb::master::IsLoadBalancedResponsePB>(yb::master::IsLoadBalancedResponsePB const&)
Line
Count
Source
122
154
Status StatusFromResp(const Resp& resp) {
123
154
  if (!resp.has_error()) {
124
2
    return Status::OK();
125
2
  }
126
152
  auto result = StatusFromPB(resp.error().status());
127
152
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
152
      master::MasterError(result) != resp.error().code()) {
129
152
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
152
  }
131
152
  return result;
132
154
}
yb::Status yb::client::internal::StatusFromResp<yb::master::IsLoadBalancerIdleResponsePB>(yb::master::IsLoadBalancerIdleResponsePB const&)
Line
Count
Source
122
2.23k
Status StatusFromResp(const Resp& resp) {
123
2.23k
  if (!resp.has_error()) {
124
450
    return Status::OK();
125
450
  }
126
1.78k
  auto result = StatusFromPB(resp.error().status());
127
1.78k
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
1.78k
      master::MasterError(result) != resp.error().code()) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
1.78k
  return result;
132
2.23k
}
yb::Status yb::client::internal::StatusFromResp<yb::master::ListLiveTabletServersResponsePB>(yb::master::ListLiveTabletServersResponsePB const&)
Line
Count
Source
122
4
Status StatusFromResp(const Resp& resp) {
123
4
  if (!resp.has_error()) {
124
4
    return Status::OK();
125
4
  }
126
0
  auto result = StatusFromPB(resp.error().status());
127
0
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
0
      master::MasterError(result) != resp.error().code()) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
0
  return result;
132
4
}
Unexecuted instantiation: yb::Status yb::client::internal::StatusFromResp<yb::master::ListMastersResponsePB>(yb::master::ListMastersResponsePB const&)
yb::Status yb::client::internal::StatusFromResp<yb::master::ListTabletServersResponsePB>(yb::master::ListTabletServersResponsePB const&)
Line
Count
Source
122
6.45k
Status StatusFromResp(const Resp& resp) {
123
6.45k
  if (!resp.has_error()) {
124
6.45k
    return Status::OK();
125
6.45k
  }
126
0
  auto result = StatusFromPB(resp.error().status());
127
0
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
0
      master::MasterError(result) != resp.error().code()) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
0
  return result;
132
6.45k
}
yb::Status yb::client::internal::StatusFromResp<yb::master::AlterRoleResponsePB>(yb::master::AlterRoleResponsePB const&)
Line
Count
Source
122
58
Status StatusFromResp(const Resp& resp) {
123
58
  if (!resp.has_error()) {
124
45
    return Status::OK();
125
45
  }
126
13
  auto result = StatusFromPB(resp.error().status());
127
13
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
13
      master::MasterError(result) != resp.error().code()) {
129
13
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
13
  }
131
13
  return result;
132
58
}
yb::Status yb::client::internal::StatusFromResp<yb::master::CreateRoleResponsePB>(yb::master::CreateRoleResponsePB const&)
Line
Count
Source
122
757
Status StatusFromResp(const Resp& resp) {
123
757
  if (!resp.has_error()) {
124
751
    return Status::OK();
125
751
  }
126
6
  auto result = StatusFromPB(resp.error().status());
127
6
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
6
      master::MasterError(result) != resp.error().code()) {
129
6
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
6
  }
131
6
  return result;
132
757
}
yb::Status yb::client::internal::StatusFromResp<yb::master::DeleteRoleResponsePB>(yb::master::DeleteRoleResponsePB const&)
Line
Count
Source
122
730
Status StatusFromResp(const Resp& resp) {
123
730
  if (!resp.has_error()) {
124
724
    return Status::OK();
125
724
  }
126
6
  auto result = StatusFromPB(resp.error().status());
127
6
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
6
      master::MasterError(result) != resp.error().code()) {
129
6
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
6
  }
131
6
  return result;
132
730
}
yb::Status yb::client::internal::StatusFromResp<yb::master::GetPermissionsResponsePB>(yb::master::GetPermissionsResponsePB const&)
Line
Count
Source
122
117k
Status StatusFromResp(const Resp& resp) {
123
117k
  if (!resp.has_error()) {
124
117k
    return Status::OK();
125
117k
  }
126
0
  auto result = StatusFromPB(resp.error().status());
127
0
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
0
      master::MasterError(result) != resp.error().code()) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
0
  return result;
132
117k
}
yb::Status yb::client::internal::StatusFromResp<yb::master::GrantRevokePermissionResponsePB>(yb::master::GrantRevokePermissionResponsePB const&)
Line
Count
Source
122
721
Status StatusFromResp(const Resp& resp) {
123
721
  if (!resp.has_error()) {
124
721
    return Status::OK();
125
721
  }
126
0
  auto result = StatusFromPB(resp.error().status());
127
0
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
0
      master::MasterError(result) != resp.error().code()) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
0
  return result;
132
721
}
yb::Status yb::client::internal::StatusFromResp<yb::master::GrantRevokeRoleResponsePB>(yb::master::GrantRevokeRoleResponsePB const&)
Line
Count
Source
122
52
Status StatusFromResp(const Resp& resp) {
123
52
  if (!resp.has_error()) {
124
49
    return Status::OK();
125
49
  }
126
3
  auto result = StatusFromPB(resp.error().status());
127
3
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
3
      master::MasterError(result) != resp.error().code()) {
129
3
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
3
  }
131
3
  return result;
132
52
}
yb::Status yb::client::internal::StatusFromResp<yb::master::CreateCDCStreamResponsePB>(yb::master::CreateCDCStreamResponsePB const&)
Line
Count
Source
122
5.49k
Status StatusFromResp(const Resp& resp) {
123
5.49k
  if (!resp.has_error()) {
124
5.49k
    return Status::OK();
125
5.49k
  }
126
0
  auto result = StatusFromPB(resp.error().status());
127
0
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
0
      master::MasterError(result) != resp.error().code()) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
0
  return result;
132
5.49k
}
Unexecuted instantiation: yb::Status yb::client::internal::StatusFromResp<yb::master::DeleteCDCStreamResponsePB>(yb::master::DeleteCDCStreamResponsePB const&)
Unexecuted instantiation: yb::Status yb::client::internal::StatusFromResp<yb::master::GetCDCDBStreamInfoResponsePB>(yb::master::GetCDCDBStreamInfoResponsePB const&)
yb::Status yb::client::internal::StatusFromResp<yb::master::GetCDCStreamResponsePB>(yb::master::GetCDCStreamResponsePB const&)
Line
Count
Source
122
1
Status StatusFromResp(const Resp& resp) {
123
1
  if (!resp.has_error()) {
124
0
    return Status::OK();
125
0
  }
126
1
  auto result = StatusFromPB(resp.error().status());
127
1
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
1
      master::MasterError(result) != resp.error().code()) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
1
  return result;
132
1
}
Unexecuted instantiation: yb::Status yb::client::internal::StatusFromResp<yb::master::ListCDCStreamsResponsePB>(yb::master::ListCDCStreamsResponsePB const&)
Unexecuted instantiation: yb::Status yb::client::internal::StatusFromResp<yb::master::UpdateCDCStreamResponsePB>(yb::master::UpdateCDCStreamResponsePB const&)
Unexecuted instantiation: yb::Status yb::client::internal::StatusFromResp<yb::master::UpdateConsumerOnProducerSplitResponsePB>(yb::master::UpdateConsumerOnProducerSplitResponsePB const&)
yb::Status yb::client::internal::StatusFromResp<yb::master::DeleteNotServingTabletResponsePB>(yb::master::DeleteNotServingTabletResponsePB const&)
Line
Count
Source
122
6
Status StatusFromResp(const Resp& resp) {
123
6
  if (!resp.has_error()) {
124
6
    return Status::OK();
125
6
  }
126
0
  auto result = StatusFromPB(resp.error().status());
127
0
  if (resp.error().code() != master::MasterErrorPB::UNKNOWN_ERROR &&
128
0
      master::MasterError(result) != resp.error().code()) {
129
0
    result = result.CloneAndAddErrorCode(master::MasterError(resp.error().code()));
130
0
  }
131
0
  return result;
132
6
}
133
134
// Gets data from the leader master. If the leader master
135
// is down, waits for a new master to become the leader, and then gets
136
// the data from the new leader master.
137
template<class Req, class Resp>
138
class ClientMasterRpc : public ClientMasterRpcBase {
139
 public:
140
  template<class... Args>
141
277k
  explicit ClientMasterRpc(Args&&... args) : ClientMasterRpcBase(std::forward<Args>(args)...) {}
yb::client::internal::ClientMasterRpc<yb::master::GetTableSchemaRequestPB, yb::master::GetTableSchemaResponsePB>::ClientMasterRpc<yb::client::YBClient*&, std::__1::chrono::time_point<yb::CoarseMonoClock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >&>(yb::client::YBClient*&, std::__1::chrono::time_point<yb::CoarseMonoClock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >&)
Line
Count
Source
141
143k
  explicit ClientMasterRpc(Args&&... args) : ClientMasterRpcBase(std::forward<Args>(args)...) {}
Unexecuted instantiation: yb::client::internal::ClientMasterRpc<yb::master::GetTablegroupSchemaRequestPB, yb::master::GetTablegroupSchemaResponsePB>::ClientMasterRpc<yb::client::YBClient*&, std::__1::chrono::time_point<yb::CoarseMonoClock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >&>(yb::client::YBClient*&, std::__1::chrono::time_point<yb::CoarseMonoClock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >&)
Unexecuted instantiation: yb::client::internal::ClientMasterRpc<yb::master::GetColocatedTabletSchemaRequestPB, yb::master::GetColocatedTabletSchemaResponsePB>::ClientMasterRpc<yb::client::YBClient*&, std::__1::chrono::time_point<yb::CoarseMonoClock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >&>(yb::client::YBClient*&, std::__1::chrono::time_point<yb::CoarseMonoClock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >&)
Unexecuted instantiation: yb::client::internal::ClientMasterRpc<yb::master::CreateCDCStreamRequestPB, yb::master::CreateCDCStreamResponsePB>::ClientMasterRpc<yb::client::YBClient*&, std::__1::chrono::time_point<yb::CoarseMonoClock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >&>(yb::client::YBClient*&, std::__1::chrono::time_point<yb::CoarseMonoClock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >&)
Unexecuted instantiation: yb::client::internal::ClientMasterRpc<yb::master::DeleteCDCStreamRequestPB, yb::master::DeleteCDCStreamResponsePB>::ClientMasterRpc<yb::client::YBClient*&, std::__1::chrono::time_point<yb::CoarseMonoClock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >&>(yb::client::YBClient*&, std::__1::chrono::time_point<yb::CoarseMonoClock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >&)
Unexecuted instantiation: yb::client::internal::ClientMasterRpc<yb::master::GetCDCDBStreamInfoRequestPB, yb::master::GetCDCDBStreamInfoResponsePB>::ClientMasterRpc<yb::client::YBClient*&, std::__1::chrono::time_point<yb::CoarseMonoClock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >&>(yb::client::YBClient*&, std::__1::chrono::time_point<yb::CoarseMonoClock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >&)
Unexecuted instantiation: yb::client::internal::ClientMasterRpc<yb::master::GetCDCStreamRequestPB, yb::master::GetCDCStreamResponsePB>::ClientMasterRpc<yb::client::YBClient*&, std::__1::chrono::time_point<yb::CoarseMonoClock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >&>(yb::client::YBClient*&, std::__1::chrono::time_point<yb::CoarseMonoClock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >&)
yb::client::internal::ClientMasterRpc<yb::master::DeleteNotServingTabletRequestPB, yb::master::DeleteNotServingTabletResponsePB>::ClientMasterRpc<yb::client::YBClient*&, std::__1::chrono::time_point<yb::CoarseMonoClock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >&>(yb::client::YBClient*&, std::__1::chrono::time_point<yb::CoarseMonoClock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >&)
Line
Count
Source
141
6
  explicit ClientMasterRpc(Args&&... args) : ClientMasterRpcBase(std::forward<Args>(args)...) {}
yb::client::internal::ClientMasterRpc<yb::master::GetTableLocationsRequestPB, yb::master::GetTableLocationsResponsePB>::ClientMasterRpc<yb::client::YBClient*&, std::__1::chrono::time_point<yb::CoarseMonoClock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >&>(yb::client::YBClient*&, std::__1::chrono::time_point<yb::CoarseMonoClock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >&)
Line
Count
Source
141
134k
  explicit ClientMasterRpc(Args&&... args) : ClientMasterRpcBase(std::forward<Args>(args)...) {}
142
143
 protected:
144
287k
  Status ResponseStatus() override {
145
287k
    return StatusFromResp(resp_);
146
287k
  }
yb::client::internal::ClientMasterRpc<yb::master::DeleteNotServingTabletRequestPB, yb::master::DeleteNotServingTabletResponsePB>::ResponseStatus()
Line
Count
Source
144
6
  Status ResponseStatus() override {
145
6
    return StatusFromResp(resp_);
146
6
  }
yb::client::internal::ClientMasterRpc<yb::master::GetTableLocationsRequestPB, yb::master::GetTableLocationsResponsePB>::ResponseStatus()
Line
Count
Source
144
144k
  Status ResponseStatus() override {
145
144k
    return StatusFromResp(resp_);
146
144k
  }
yb::client::internal::ClientMasterRpc<yb::master::GetTableSchemaRequestPB, yb::master::GetTableSchemaResponsePB>::ResponseStatus()
Line
Count
Source
144
143k
  Status ResponseStatus() override {
145
143k
    return StatusFromResp(resp_);
146
143k
  }
Unexecuted instantiation: yb::client::internal::ClientMasterRpc<yb::master::GetTablegroupSchemaRequestPB, yb::master::GetTablegroupSchemaResponsePB>::ResponseStatus()
Unexecuted instantiation: yb::client::internal::ClientMasterRpc<yb::master::GetColocatedTabletSchemaRequestPB, yb::master::GetColocatedTabletSchemaResponsePB>::ResponseStatus()
Unexecuted instantiation: yb::client::internal::ClientMasterRpc<yb::master::CreateCDCStreamRequestPB, yb::master::CreateCDCStreamResponsePB>::ResponseStatus()
Unexecuted instantiation: yb::client::internal::ClientMasterRpc<yb::master::DeleteCDCStreamRequestPB, yb::master::DeleteCDCStreamResponsePB>::ResponseStatus()
Unexecuted instantiation: yb::client::internal::ClientMasterRpc<yb::master::GetCDCDBStreamInfoRequestPB, yb::master::GetCDCDBStreamInfoResponsePB>::ResponseStatus()
Unexecuted instantiation: yb::client::internal::ClientMasterRpc<yb::master::GetCDCStreamRequestPB, yb::master::GetCDCStreamResponsePB>::ResponseStatus()
147
148
  Req req_;
149
  Resp resp_;
150
};
151
152
} // namespace internal
153
} // namespace client
154
} // namespace yb
155
156
#endif // YB_CLIENT_CLIENT_MASTER_RPC_H