summaryrefslogtreecommitdiffstats
path: root/glusterfs.spec.in
diff options
context:
space:
mode:
authorPranith Kumar K <pranithk@gluster.com>2012-05-28 15:31:36 +0530
committerAnand Avati <avati@redhat.com>2012-06-01 15:37:32 -0700
commit1904ef07f6b0f71e4b01a505c95606a7e364596e (patch)
tree786c452905685773386492940d234e2064580332 /glusterfs.spec.in
parent1d799568db8e5dc068795c53b864aa355040be15 (diff)
glusterd: regenerate brick vol-files on upgrade
If upgrade/downgrade option is set in glusterd it terminates after the volfiles are regenerated. No need for 'sleep 10' hack anymore. BUG: 825872 Change-Id: I12e666eb871aad7e7efa954b9307993952745d92 Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Reviewed-on: http://review.gluster.com/3482 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'glusterfs.spec.in')
-rw-r--r--glusterfs.spec.in7
1 files changed, 3 insertions, 4 deletions
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
index 8d0174840..e607c811e 100644
--- a/glusterfs.spec.in
+++ b/glusterfs.spec.in
@@ -325,11 +325,10 @@ if [ $? -eq 0 ]; then
killall glusterd &> /dev/null
#add marker translator
- glusterd --xlator-option *.upgrade=on
+ glusterd --xlator-option *.upgrade=on -N
+ glusterd
else
- glusterd --xlator-option *.upgrade=on
- sleep 10
- killall glusterd &> /dev/null
+ glusterd --xlator-option *.upgrade=on -N
fi
%preun server