Skip to content

Commit

Permalink
ctdb-scripts: Drop creation of database directories
Browse files Browse the repository at this point in the history
These should be created elsewhere.  If not then something is wrong, so
don't hide the problem.

Signed-off-by: Martin Schwenke <[email protected]>
Reviewed-by: Amitay Isaacs <[email protected]>

Autobuild-User(master): Amitay Isaacs <[email protected]>
Autobuild-Date(master): Fri Nov 20 04:40:26 CET 2015 on sn-devel-104
  • Loading branch information
martin-schwenke authored and Amitay Isaacs committed Nov 20, 2015
1 parent 5b7bb60 commit 8fdda6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ctdb/config/events.d/00.ctdb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ check_tdb ()
check_persistent_databases ()
{
_dir="${CTDB_DBDIR_PERSISTENT:-${CTDB_DBDIR:-${CTDB_VARDIR}}/persistent}"
mkdir -p "$_dir" 2>/dev/null
[ -d "$_dir" ] || return 0

[ "${CTDB_MAX_PERSISTENT_CHECK_ERRORS:-0}" = "0" ] || return 0

Expand All @@ -80,7 +80,7 @@ check_persistent_databases ()
check_non_persistent_databases ()
{
_dir="${CTDB_DBDIR:-${CTDB_VARDIR}}"
mkdir -p "$_dir" 2>/dev/null
[ -d "$_dir" ] || return 0

for _db in $(ls "${_dir}/"*.tdb.*[0-9] 2>/dev/null) ; do
check_tdb $_db || {
Expand Down

0 comments on commit 8fdda6f

Please sign in to comment.