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>
25 lines
387 B
Bash
25 lines
387 B
Bash
#!/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
|