diff options
author | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2012-05-21 13:11:38 +1000 |
---|---|---|
committer | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2012-05-21 13:26:13 +1000 |
commit | 26322d257d9e75397c00037f93150be1b5b48df3 (patch) | |
tree | a595efc29e067192ce141c4cf2380710d4719489 /ctdb/include/ctdb_private.h | |
parent | dd647d45cb773d64c65ba2a28e9b682328172aea (diff) | |
download | samba-26322d257d9e75397c00037f93150be1b5b48df3.tar.gz samba-26322d257d9e75397c00037f93150be1b5b48df3.tar.xz samba-26322d257d9e75397c00037f93150be1b5b48df3.zip |
DEBUG: Add checks for and print debug messages when 1) a database contains very many records, 2) when a database is very big, 3) when a single record is very big.
Add tunables to control when to log these instances and allow it to be completely turned off by setting the threshold to 0
(This used to be ctdb commit 9ed58fef4991725f75509433496f4d5ffae0ae87)
Diffstat (limited to 'ctdb/include/ctdb_private.h')
-rw-r--r-- | ctdb/include/ctdb_private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index a1b4b897180..0f494b4b2b0 100644 --- a/ctdb/include/ctdb_private.h +++ b/ctdb/include/ctdb_private.h @@ -131,6 +131,9 @@ struct ctdb_tunable { uint32_t sticky_duration; uint32_t sticky_pindown; uint32_t no_ip_takeover; + uint32_t db_record_count_warn; + uint32_t db_record_size_warn; + uint32_t db_size_warn; }; /* |