diff options
| -rw-r--r-- | tests/basic/ec/self-heal.t | 2 | ||||
| -rw-r--r-- | tests/basic/glusterd/volfile_server_switch.t | 2 | ||||
| -rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volume-set.c | 4 | 
3 files changed, 5 insertions, 3 deletions
diff --git a/tests/basic/ec/self-heal.t b/tests/basic/ec/self-heal.t index d217559db1a..6329bb60248 100644 --- a/tests/basic/ec/self-heal.t +++ b/tests/basic/ec/self-heal.t @@ -131,6 +131,8 @@ TEST $CLI volume create $V0 redundancy 2 $H0:$B0/${V0}{0..5}  TEST $CLI volume set $V0 client-log-level DEBUG  #Write-behind has a bug where lookup can race over write which leads to size mismatch on the mount after a 'cp'  TEST $CLI volume set $V0 performance.write-behind off +#md-cache can return stale stat due to default timeout being 1 sec +TEST $CLI volume set $V0 performance.stat-prefetch off  EXPECT "Created" volinfo_field $V0 'Status'  TEST $CLI volume start $V0  EXPECT_WITHIN $PROCESS_UP_TIMEOUT "Started" volinfo_field $V0 'Status' diff --git a/tests/basic/glusterd/volfile_server_switch.t b/tests/basic/glusterd/volfile_server_switch.t index 309060919b7..e11cfed509a 100644 --- a/tests/basic/glusterd/volfile_server_switch.t +++ b/tests/basic/glusterd/volfile_server_switch.t @@ -34,7 +34,7 @@ TEST glusterfs --volfile-id=/$V0 --volfile-server=$H1 --volfile-server=$H2 --vol  TEST kill_glusterd 1 -TEST $CLI_2 volume set $V0 performance.io-cache off +TEST $CLI_2 volume set $V0 performance.write-behind off  # make sure by this time directory will be created  # TODO: suggest ideal time to wait diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c index ac78192d1f9..b34b122b839 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c +++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c @@ -1749,7 +1749,7 @@ struct volopt_map_entry glusterd_volopt_map[] = {      {.key = "performance.read-ahead",       .voltype = "performance/read-ahead",       .option = "!perf", -     .value = "on", +     .value = "off",       .op_version = 1,       .description = "enable/disable read-ahead translator in the volume.",       .flags = VOLOPT_FLAG_CLIENT_OPT | VOLOPT_FLAG_XLATOR_OPT}, @@ -1763,7 +1763,7 @@ struct volopt_map_entry glusterd_volopt_map[] = {      {.key = "performance.io-cache",       .voltype = "performance/io-cache",       .option = "!perf", -     .value = "on", +     .value = "off",       .op_version = 1,       .description = "enable/disable io-cache translator in the volume.",       .flags = VOLOPT_FLAG_CLIENT_OPT},  | 
