diff options
author | Amitay Isaacs <amitay@gmail.com> | 2012-11-14 15:51:59 +1100 |
---|---|---|
committer | Amitay Isaacs <amitay@gmail.com> | 2012-11-14 15:51:59 +1100 |
commit | 442d9905fea465b8257fa5bdc666eedb4302b121 (patch) | |
tree | 4c00d9e08cc94004ccaf60680e47b34b5812224f /ctdb/include/ctdb_private.h | |
parent | 56ee668a51bb04634a35593052477cfa92b00fc8 (diff) | |
download | samba-442d9905fea465b8257fa5bdc666eedb4302b121.tar.gz samba-442d9905fea465b8257fa5bdc666eedb4302b121.tar.xz samba-442d9905fea465b8257fa5bdc666eedb4302b121.zip |
locking: Do not use RECLOCK for tracking DB locks and latencies
RECLOCK is for recovery lock in CTDB. Do not override the meaning for
tracking locks on databases. Database lock latency has nothing to do
with recovery lock latency.
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
(This used to be ctdb commit 54e24a151d2163954e5a2a1c0f41a2b5c19ae44b)
Diffstat (limited to 'ctdb/include/ctdb_private.h')
-rw-r--r-- | ctdb/include/ctdb_private.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index 4ad498b687b..f06a1f15872 100644 --- a/ctdb/include/ctdb_private.h +++ b/ctdb/include/ctdb_private.h @@ -365,7 +365,7 @@ struct ctdb_daemon_data { } \ } -#define CTDB_UPDATE_DB_RECLOCK_LATENCY(ctdb_db, name, counter, value) \ +#define CTDB_UPDATE_DB_LATENCY(ctdb_db, operation, counter, value) \ { \ if (value > ctdb_db->statistics.counter.max) \ ctdb_db->statistics.counter.max = value; \ @@ -377,10 +377,10 @@ struct ctdb_daemon_data { ctdb_db->statistics.counter.num++; \ \ if (ctdb_db->ctdb->tunable.reclock_latency_ms != 0) { \ - if (value*1000 > ctdb_db->ctdb->tunable.reclock_latency_ms) { \ + if (value*1000 > ctdb_db->ctdb->tunable.log_latency_ms) { \ DEBUG(DEBUG_ERR, \ - ("High RECLOCK latency %fs for operation %s\n", \ - value, name)); \ + ("High latency %.6fs for operation %s on database %s\n",\ + value, operation, ctdb_db->db_name)); \ } \ } \ } |