From d36aa928fd3bbdd55d429bb5abe4a67c0f875a8d Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Tue, 25 Jun 2013 15:25:16 +1000 Subject: 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 (This used to be ctdb commit 26a4653df594d351ca0dc1bd5f5b2f5b0eb0a9a5) --- ctdb/include/ctdb_private.h | 4 ---- ctdb/include/ctdb_protocol.h | 7 ------- 2 files changed, 11 deletions(-) (limited to 'ctdb/include') diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index 17b8933553..b7f6db7ec8 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 10f643bb7f..9e95f4db6a 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 -- cgit