diff options
Diffstat (limited to 'xlators/features/locks/src/posix.c')
-rw-r--r-- | xlators/features/locks/src/posix.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/xlators/features/locks/src/posix.c b/xlators/features/locks/src/posix.c index 1e1d9e5ae30..57753dac588 100644 --- a/xlators/features/locks/src/posix.c +++ b/xlators/features/locks/src/posix.c @@ -1562,7 +1562,13 @@ int pl_flush_cbk (call_frame_t *frame, void *cookie, xlator_t *this, int32_t op_ret, int32_t op_errno, dict_t *xdata) { - PL_STACK_UNWIND (flush, xdata, frame, op_ret, op_errno, xdata); + + if (frame->root->client && + (frame->root->client->opversion < GD_OP_VERSION_3_10_0)) { + STACK_UNWIND_STRICT (flush, frame, op_ret, op_errno, xdata); + } else { + PL_STACK_UNWIND (flush, xdata, frame, op_ret, op_errno, xdata); + } return 0; } |