1 | /* |
2 | * xdr_serverside_stubs.c |
3 | * |
4 | * Copyright (C) 2014-2016 Aerospike, Inc. |
5 | * |
6 | * Portions may be licensed to Aerospike, Inc. under one or more contributor |
7 | * license agreements. |
8 | * |
9 | * This program is free software: you can redistribute it and/or modify it under |
10 | * the terms of the GNU Affero General Public License as published by the Free |
11 | * Software Foundation, either version 3 of the License, or (at your option) any |
12 | * later version. |
13 | * |
14 | * This program is distributed in the hope that it will be useful, but WITHOUT |
15 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
16 | * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more |
17 | * details. |
18 | * |
19 | * You should have received a copy of the GNU Affero General Public License |
20 | * along with this program. If not, see http://www.gnu.org/licenses/ |
21 | */ |
22 | |
23 | #include "base/xdr_serverside.h" |
24 | |
25 | int as_xdr_init() |
26 | { |
27 | return -1; |
28 | } |
29 | |
30 | void xdr_config_post_process() |
31 | { |
32 | } |
33 | |
34 | void as_xdr_start() |
35 | { |
36 | } |
37 | |
38 | void as_xdr_shutdown() |
39 | { |
40 | } |
41 | |
42 | void xdr_broadcast_lastshipinfo(uint64_t val[]) |
43 | { |
44 | } |
45 | |
46 | void xdr_clear_dirty_bins(xdr_dirty_bins *dirty) |
47 | { |
48 | } |
49 | |
50 | void xdr_fill_dirty_bins(xdr_dirty_bins *dirty) |
51 | { |
52 | } |
53 | |
54 | void xdr_copy_dirty_bins(xdr_dirty_bins *from, xdr_dirty_bins *to) |
55 | { |
56 | } |
57 | |
58 | void xdr_add_dirty_bin(as_namespace *ns, xdr_dirty_bins *dirty, const char *name, size_t name_len) |
59 | { |
60 | } |
61 | |
62 | void xdr_write(as_namespace *ns, cf_digest *keyd, uint16_t generation, cf_node masternode, xdr_op_type op_type, uint16_t set_id, xdr_dirty_bins *dirty) |
63 | { |
64 | } |
65 | |
66 | void as_xdr_read_txn(as_transaction *txn) |
67 | { |
68 | } |
69 | |
70 | void as_xdr_info_init(void) |
71 | { |
72 | } |
73 | |
74 | void as_xdr_info_port(cf_serv_cfg *serv_cfg) |
75 | { |
76 | (void)serv_cfg; |
77 | } |
78 | |
79 | int as_info_command_xdr(char *name, char *params, cf_dyn_buf *db) |
80 | { |
81 | return -1; |
82 | } |
83 | |
84 | void as_xdr_get_stats(cf_dyn_buf *db) |
85 | { |
86 | } |
87 | |
88 | void as_xdr_get_config(cf_dyn_buf *db) |
89 | { |
90 | } |
91 | |
92 | bool as_xdr_set_config(char *params) |
93 | { |
94 | return false; |
95 | } |
96 | |
97 | bool as_xdr_set_config_ns(char *ns_name, char *params) |
98 | { |
99 | return false; |
100 | } |
101 | |
102 | bool is_xdr_delete_shipping_enabled() |
103 | { |
104 | return false; |
105 | } |
106 | |
107 | bool is_xdr_digestlog_low(as_namespace *ns) |
108 | { |
109 | return false; |
110 | } |
111 | |
112 | bool is_xdr_forwarding_enabled() |
113 | { |
114 | return false; |
115 | } |
116 | |
117 | bool is_xdr_nsup_deletes_enabled() |
118 | { |
119 | return false; |
120 | } |
121 | |
122 | void xdr_cfg_add_int_ext_mapping(xdr_dest_aero_config *dc_cfg, char* orig, char* alt) |
123 | { |
124 | } |
125 | |