diff options
author | Atin Mukherjee <amukherj@redhat.com> | 2014-04-30 11:12:40 +0530 |
---|---|---|
committer | Kaushal M <kaushal@redhat.com> | 2014-05-12 04:37:03 -0700 |
commit | e64dd0a358e7a7b4c0da86a6b17adf6f125c00d5 (patch) | |
tree | 36db6dd9895651c827f36f3cb7943426c2672fe2 /tests | |
parent | 4f905163211f8d439c6e102d3ffd1bffb34f5c26 (diff) |
glusterd : barrier enable/disable should fail if already enabled/disabled
In barrier notify function, if we fail to set the barrier option execution goes
to default_notify which returns 0 and command returns success.
Fix : We need not call the default_notify function when handling
GF_EVENT_TRANSLATOR_OP in barrier xlator's notify.
Change-Id: Ia2c361b43cca7791c29829d69dcd6fc7923102f6
BUG: 1092841
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
Reviewed-on: http://review.gluster.org/7609
Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Sachin Pandit <spandit@redhat.com>
Reviewed-by: Kaushal M <kaushal@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs/bug-1092841.t | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/bugs/bug-1092841.t b/tests/bugs/bug-1092841.t new file mode 100644 index 00000000000..6740c318d9c --- /dev/null +++ b/tests/bugs/bug-1092841.t @@ -0,0 +1,24 @@ +#!/bin/bash + +. $(dirname $0)/../include.rc +. $(dirname $0)/../volume.rc + +cleanup; + +TEST glusterd; +TEST pidof glusterd; +TEST $CLI volume info; + +TEST $CLI volume create $V0 $H0:$B0/${V0}{1,2}; + +TEST $CLI volume start $V0; + +TEST $CLI volume barrier $V0 enable; + +TEST ! $CLI volume barrier $V0 enable; + +TEST $CLI volume barrier $V0 disable; + +TEST ! $CLI volume barrier $V0 disable; + +cleanup |