[SCM] CTDB repository - branch master updated -
d32b16a4e5ecc31563c6f2767e7d483f3d980284
Ronnie Sahlberg
sahlberg at samba.org
Fri May 16 05:18:18 GMT 2008
The branch, master has been updated
via d32b16a4e5ecc31563c6f2767e7d483f3d980284 (commit)
from f0b98a32be2043a465d4d0ab42e6c2407d9d60f2 (commit)
http://gitweb.samba.org/?p=sahlberg/ctdb.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit d32b16a4e5ecc31563c6f2767e7d483f3d980284
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Fri May 16 15:14:17 2008 +1000
When ctdb has just been installed on a node, there wont be any persistent databases
stored yet.
Fix a cosmetic and annoying warning message when running "service ctdb start" and supress printing out that "warning your ls command to find the persistent databases didnt find any" ...
-----------------------------------------------------------------------
Summary of changes:
config/ctdb.init | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/config/ctdb.init b/config/ctdb.init
index 95845d1..88ecc77 100755
--- a/config/ctdb.init
+++ b/config/ctdb.init
@@ -91,7 +91,8 @@ start() {
[ -z "$CTDB_DBDIR" ] || {
PERSISTENT_DB_DIR="$CTDB_DBDIR/persistent"
}
- for PDBASE in `ls $PERSISTENT_DB_DIR/*.tdb.[0-9]`; do
+ mkdir -p $PERSISTENT_DB_DIR 2>/dev/null
+ for PDBASE in `ls $PERSISTENT_DB_DIR/*.tdb.[0-9] 2>/dev/null`; do
/usr/bin/tdbdump $PDBASE >/dev/null 2>/dev/null || {
echo "Persistent database $PDBASE is corrupted! CTDB will not start."
return 1
--
CTDB repository
More information about the samba-cvs
mailing list