diff options
author | Atin Mukherjee <amukherj@redhat.com> | 2018-01-08 09:55:37 +0530 |
---|---|---|
committer | Poornima G <pgurusid@redhat.com> | 2018-01-18 05:57:40 +0000 |
commit | c2fa8a94342b0cfbce9393f513099b8751711eae (patch) | |
tree | 65fb466e8a330396ff87f7707dbc025e696180f7 | |
parent | 80a6a2357c0c0351691c450c40de820efce7ff6f (diff) |
fix features/leases: volume option fixes for GD2
Updates #302
Change-Id: I31091765b5bfd118fc5370b3515128f0e84e360f
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
-rw-r--r-- | xlators/features/leases/src/leases.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/features/leases/src/leases.c b/xlators/features/leases/src/leases.c index 194d5f34aa8..d4fdbfb7ea1 100644 --- a/xlators/features/leases/src/leases.c +++ b/xlators/features/leases/src/leases.c @@ -1128,11 +1128,15 @@ struct volume_options options[] = { { .key = {"leases"}, .type = GF_OPTION_TYPE_BOOL, .default_value = "off", + .op_version = {GD_OP_VERSION_3_8_0}, + .flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC, .description = "When \"on\", enables leases support" }, { .key = {"lease-lock-recall-timeout"}, .type = GF_OPTION_TYPE_INT, .default_value = RECALL_LEASE_LK_TIMEOUT, + .op_version = {GD_OP_VERSION_3_8_0}, + .flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC, .description = "After 'timeout' seconds since the recall_lease" " request has been sent to the client, the lease lock" " will be forcefully purged by the server." |