projects
/
pgpool-online-recovery
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
257effa
)
it's safe to assume that virtual ip is always at master
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 31 Aug 2017 13:49:41 +0000
(15:49 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 31 Aug 2017 13:49:41 +0000
(15:49 +0200)
t/99-primary-ip.sh
patch
|
blob
|
history
diff --git
a/t/99-primary-ip.sh
b/t/99-primary-ip.sh
index
9f43db2
..
e17529c
100755
(executable)
--- a/
t/99-primary-ip.sh
+++ b/
t/99-primary-ip.sh
@@
-1,6
+1,6
@@
NODE=`psql -h 10.200.1.60 -p 9999 -c 'show pool_nodes' postgres postgres | grep primary | awk '{ print $3 }'`
if [ -z "$NODE" ] ; then
- echo 10.200.1.6
1
+ echo 10.200.1.6
0
else
grep $NODE hosts | awk '{ print $1 }'
fi