git.samba.org
/
sahlberg
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff82467
)
Revert "dont shutdown a node when the reclock file is temporarily unavailable."
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Mon, 19 Oct 2009 04:30:44 +0000
(15:30 +1100)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Mon, 19 Oct 2009 04:30:44 +0000
(15:30 +1100)
This reverts commit
f5e9f3007c10a937158bc8cdfabf33c984cf9c50
.
config/events.d/01.reclock
patch
|
blob
|
history
diff --git
a/config/events.d/01.reclock
b/config/events.d/01.reclock
index b4f033c81e617306513da80e62762c0bfcf322f1..74b9ceac8686e071f95fc41f8b7bf83c5fb6409a 100755
(executable)
--- a/
config/events.d/01.reclock
+++ b/
config/events.d/01.reclock
@@
-21,6
+21,13
@@
case $cmd in
;;
monitor)
+ ctdb_counter_incr "$RECLOCKCOUNT"
+ ctdb_counter_limit "$RECLOCKCOUNT" 20 && {
+ echo "Reclock file can not be accessed. Shutting down."
+ sleep 1
+ ctdb shutdown
+ }
+
RECLOCKFILE=`ctdb -Y getreclock`
[ -z "$RECLOCKFILE" ] && {
# we are not using a reclock file
@@
-28,8
+35,6
@@
case $cmd in
exit 0
}
- ctdb_counter_incr "$RECLOCKCOUNT"
-
# try stat the reclock file as a background process
# so that we dont block in case the cluster filesystem is unavailable
(