summaryrefslogtreecommitdiff
path: root/ctdb/include
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2017-03-21 16:48:45 +1100
committerMartin Schwenke <martins@samba.org>2017-04-05 08:35:45 +0200
commit5da471919d2b7ed45be574a8cb7c88351f894797 (patch)
tree682e63e524bb01f183f11730e7c1f55344f8507c /ctdb/include
parent1445fa3b7126a3e12fc795db2d7a495f9caf2a3a (diff)
downloadsamba-5da471919d2b7ed45be574a8cb7c88351f894797.tar.gz
ctdb-daemon: Add tracking of migration records
Instead of using hopcount as a metric for hot records, use the number of migrations per second as a metric. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Wed Apr 5 08:35:45 CEST 2017 on sn-devel-144
Diffstat (limited to 'ctdb/include')
-rw-r--r--ctdb/include/ctdb_private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h
index d81ed56d763..91e98857a15 100644
--- a/ctdb/include/ctdb_private.h
+++ b/ctdb/include/ctdb_private.h
@@ -387,6 +387,8 @@ struct ctdb_db_context {
bool push_started;
void *push_state;
+
+ struct hash_count_context *migratedb;
};
@@ -521,6 +523,8 @@ int ctdb_add_revoke_deferred_call(struct ctdb_context *ctdb,
TDB_DATA key, struct ctdb_req_header *hdr,
deferred_requeue_fn fn, void *call_context);
+int ctdb_migration_init(struct ctdb_db_context *ctdb_db);
+
/* from server/ctdb_control.c */
int32_t ctdb_dump_memory(struct ctdb_context *ctdb, TDB_DATA *outdata);