/Users/deen/code/yugabyte-db/ent/src/yb/master/master_backup_service.cc
Line | Count | Source (jump to first uncovered line) |
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 | | #include "yb/master/master_backup_service.h" |
14 | | |
15 | | #include "yb/master/catalog_manager.h" |
16 | | #include "yb/master/catalog_manager-internal.h" |
17 | | #include "yb/master/master.h" |
18 | | #include "yb/master/master_service_base-internal.h" |
19 | | |
20 | | #define YB_MASTER_BACKUP_SERVICE_FORWARD_METHOD(r, data, method) \ |
21 | | void MasterBackupServiceImpl::method( \ |
22 | | const BOOST_PP_CAT(method, RequestPB)* req, \ |
23 | | BOOST_PP_CAT(method, ResponsePB)* resp, \ |
24 | 0 | rpc::RpcContext rpc) { \ |
25 | 0 | HandleIn(req, resp, &rpc, &enterprise::CatalogManager::method, \ |
26 | 0 | __FILE__, __LINE__, __func__, HoldCatalogLock::kTrue); \ |
27 | 0 | } Unexecuted instantiation: _ZN2yb6master23MasterBackupServiceImpl14CreateSnapshotEPKNS0_23CreateSnapshotRequestPBEPNS0_24CreateSnapshotResponsePBENS_3rpc10RpcContextE Unexecuted instantiation: _ZN2yb6master23MasterBackupServiceImpl13ListSnapshotsEPKNS0_22ListSnapshotsRequestPBEPNS0_23ListSnapshotsResponsePBENS_3rpc10RpcContextE Unexecuted instantiation: _ZN2yb6master23MasterBackupServiceImpl24ListSnapshotRestorationsEPKNS0_33ListSnapshotRestorationsRequestPBEPNS0_34ListSnapshotRestorationsResponsePBENS_3rpc10RpcContextE Unexecuted instantiation: _ZN2yb6master23MasterBackupServiceImpl15RestoreSnapshotEPKNS0_24RestoreSnapshotRequestPBEPNS0_25RestoreSnapshotResponsePBENS_3rpc10RpcContextE Unexecuted instantiation: _ZN2yb6master23MasterBackupServiceImpl14DeleteSnapshotEPKNS0_23DeleteSnapshotRequestPBEPNS0_24DeleteSnapshotResponsePBENS_3rpc10RpcContextE Unexecuted instantiation: _ZN2yb6master23MasterBackupServiceImpl18ImportSnapshotMetaEPKNS0_27ImportSnapshotMetaRequestPBEPNS0_28ImportSnapshotMetaResponsePBENS_3rpc10RpcContextE Unexecuted instantiation: _ZN2yb6master23MasterBackupServiceImpl22CreateSnapshotScheduleEPKNS0_31CreateSnapshotScheduleRequestPBEPNS0_32CreateSnapshotScheduleResponsePBENS_3rpc10RpcContextE Unexecuted instantiation: _ZN2yb6master23MasterBackupServiceImpl21ListSnapshotSchedulesEPKNS0_30ListSnapshotSchedulesRequestPBEPNS0_31ListSnapshotSchedulesResponsePBENS_3rpc10RpcContextE Unexecuted instantiation: _ZN2yb6master23MasterBackupServiceImpl22DeleteSnapshotScheduleEPKNS0_31DeleteSnapshotScheduleRequestPBEPNS0_32DeleteSnapshotScheduleResponsePBENS_3rpc10RpcContextE |
28 | | |
29 | | namespace yb { |
30 | | namespace master { |
31 | | |
32 | | using rpc::RpcContext; |
33 | | |
34 | | MasterBackupServiceImpl::MasterBackupServiceImpl(Master* server) |
35 | | : MasterBackupIf(server->metric_entity()), |
36 | 5.42k | MasterServiceBase(server) { |
37 | 5.42k | } |
38 | | |
39 | | BOOST_PP_SEQ_FOR_EACH(YB_MASTER_BACKUP_SERVICE_FORWARD_METHOD, ~, YB_MASTER_BACKUP_SERVICE_METHODS) |
40 | | |
41 | | } // namespace master |
42 | | } // namespace yb |