[SCM] CTDB repository - branch 1.2 updated - ctdb-1.0.114-375-g0e808fa

Ronnie Sahlberg sahlberg at samba.org
Mon Oct 11 15:29:38 MDT 2010


The branch, 1.2 has been updated
       via  0e808fae50a5b86e2487e2aae0ec2d06683d3d30 (commit)
      from  e306c93358c19e1b18f7525ff04371130b89d3ca (commit)

http://gitweb.samba.org/?p=sahlberg/ctdb.git;a=shortlog;h=1.2


- Log -----------------------------------------------------------------
commit 0e808fae50a5b86e2487e2aae0ec2d06683d3d30
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Oct 12 08:02:18 2010 +1100

    Make sure the statd directory exist before trying to access the
    "update trigger" file.
    
    CQ 1020344

-----------------------------------------------------------------------

Summary of changes:
 config/events.d/60.nfs |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/config/events.d/60.nfs b/config/events.d/60.nfs
index 60de41e..cd5219a 100755
--- a/config/events.d/60.nfs
+++ b/config/events.d/60.nfs
@@ -25,6 +25,7 @@ case "$1" in
 	;;
      startup)
 	ctdb_service_start
+	mkdir -p $CTDB_VARDIR/state/statd
 	touch $CTDB_VARDIR/state/statd/update-trigger
 	;;
 
@@ -107,6 +108,7 @@ case "$1" in
 	CURRENT_TIME=`date +"%s"`
 	expr "$CURRENT_TIME" ">" "(" "$LAST_UPDATE" "+" "60" ")" >/dev/null 2>/dev/null
 	[ $? = "0" ] && {
+	    mkdir -p $CTDB_VARDIR/state/statd
 	    touch $CTDB_VARDIR/state/statd/update-trigger
 	    $CTDB_BASE/statd-callout updatelocal &
 	    $CTDB_BASE/statd-callout updateremote &


-- 
CTDB repository


More information about the samba-cvs mailing list