1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-21 09:34:19 +03:00

ctdb-scripts: Change default persistent DB for statd_callout_helper

This database isn't use throughout CTDB, so name the it more
specifically.

Note that this might cause locks to be lost during upgrade to the
first version containing this change.

For testing, a different name is chosen to exercise related
functionality.

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>

Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Fri Dec 13 15:01:10 UTC 2024 on atb-devel-224
This commit is contained in:
Martin Schwenke 2024-06-25 11:06:19 +10:00 committed by Amitay Isaacs
parent 16df4de954
commit 86cdaf5a2e
3 changed files with 4 additions and 4 deletions

View File

@ -1065,7 +1065,7 @@ CTDB_PER_IP_ROUTING_TABLE_ID_HIGH=9000
</para>
<para>
If :TDB is omitted then TDB defaults to
<filename>ctdb.tdb</filename>.
<filename>ctdb_statd_callout.tdb</filename>.
</para>
</listitem>
</varlistentry>

View File

@ -10,7 +10,7 @@ setup()
case "$CTDB_STATD_CALLOUT_SHARED_STORAGE" in
"" | persistent_db)
CTDB_STATD_CALLOUT_SHARED_STORAGE="persistent_db:ctdb.tdb"
CTDB_STATD_CALLOUT_SHARED_STORAGE="persistent_db:statd_foo.tdb"
;;
shared_dir)
export CTDB_NFS_SHARED_STATE_DIR="/clusterfs"
@ -87,7 +87,7 @@ check_shared_storage_statd_state()
case "$statd_callout_mode" in
persistent_db)
if [ -z "$statd_callout_location" ]; then
statd_callout_location="ctdb.tdb"
statd_callout_location="statd_foo.tdb"
fi
check_ctdb_tdb_statd_state "$@"
;;

View File

@ -93,7 +93,7 @@ fi
case "$statd_callout_mode" in
persistent_db)
statd_callout_db="${statd_callout_location:-ctdb.tdb}"
statd_callout_db="${statd_callout_location:-ctdb_statd_callout.tdb}"
statd_callout_queue_dir="${statd_callout_state_dir}/queue"
;;
shared_dir)