summaryrefslogtreecommitdiffstats
path: root/ctdb/include
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2013-06-25 15:25:16 +1000
committerAmitay Isaacs <amitay@gmail.com>2013-07-10 14:33:18 +1000
commitd36aa928fd3bbdd55d429bb5abe4a67c0f875a8d (patch)
treece37e71241216c5cb8cd29749e3021ef17eb4062 /ctdb/include
parentc0798dfb6429ab8665db0ee69140ff881506384d (diff)
downloadsamba-d36aa928fd3bbdd55d429bb5abe4a67c0f875a8d.tar.gz
samba-d36aa928fd3bbdd55d429bb5abe4a67c0f875a8d.tar.xz
samba-d36aa928fd3bbdd55d429bb5abe4a67c0f875a8d.zip
ctdbd: Remove incomplete ctdb_db_statistics_wire structure
Send the ctdb_db_statistics directly instead of first copying it to duplicate ctdb_db_statistics_wire structure. This simplifies the implementation of the control to get database statistics. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 26a4653df594d351ca0dc1bd5f5b2f5b0eb0a9a5)
Diffstat (limited to 'ctdb/include')
-rw-r--r--ctdb/include/ctdb_private.h4
-rw-r--r--ctdb/include/ctdb_protocol.h7
2 files changed, 0 insertions, 11 deletions
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h
index 17b89335538..b7f6db7ec85 100644
--- a/ctdb/include/ctdb_private.h
+++ b/ctdb/include/ctdb_private.h
@@ -1561,10 +1561,6 @@ int ctdb_fetch_func(struct ctdb_call_info *call);
int ctdb_fetch_with_header_func(struct ctdb_call_info *call);
-int32_t ctdb_control_get_db_statistics(struct ctdb_context *ctdb,
- uint32_t db_id,
- TDB_DATA *outdata);
-
int ctdb_set_db_sticky(struct ctdb_context *ctdb, struct ctdb_db_context *ctdb_db);
/*
diff --git a/ctdb/include/ctdb_protocol.h b/ctdb/include/ctdb_protocol.h
index 10f643bb7ff..9e95f4db6ae 100644
--- a/ctdb/include/ctdb_protocol.h
+++ b/ctdb/include/ctdb_protocol.h
@@ -733,13 +733,6 @@ struct ctdb_db_statistics {
uint32_t num_hot_keys;
struct ctdb_db_hot_key hot_keys[MAX_HOT_KEYS];
};
-struct ctdb_db_statistics_wire {
- uint32_t db_ro_delegations;
- uint32_t db_ro_revokes;
- uint32_t hop_count_bucket[MAX_COUNT_BUCKETS];
- uint32_t num_hot_keys;
- char hot_keys[1];
-};
/*
* wire format for interface list