1df6c8
From 147cff762b307bf60519bae4cdefc62f655119a7 Mon Sep 17 00:00:00 2001
1df6c8
From: Pranith Kumar K <pkarampu@redhat.com>
1df6c8
Date: Wed, 30 Oct 2019 10:47:17 +0530
1df6c8
Subject: [PATCH 331/335] features/locks: Do special handling for op-version <
1df6c8
 3.12.0
1df6c8
1df6c8
Problem:
1df6c8
Patch https://code.engineering.redhat.com/gerrit/#/c/140080/ diverges from
1df6c8
its upstream patch(https://review.gluster.org/c/glusterfs/+/20031) in op-version.
1df6c8
On upstream special-handling happens for version < 3.10.0 whereas for downstream
1df6c8
special-handling happens for version < 3.12.0.
1df6c8
    When rebase happened for 3.5.0 from upstream, this downstream specific change
1df6c8
is missed as there was no special downstream-only patch tracking this difference.
1df6c8
This leads to I/O errors on upgrade from 3.3.1->3.5.0
1df6c8
1df6c8
Fix:
1df6c8
Do special handling for op-version < 3.12.0 as in 3.4.x
1df6c8
1df6c8
Change-Id: I72fec058bdfb3cd30d017d205c90aa61aec86c5d
1df6c8
Label: DOWNSTREAM ONLY
1df6c8
BUG: 1766640
1df6c8
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
1df6c8
Reviewed-on: https://code.engineering.redhat.com/gerrit/185835
1df6c8
Reviewed-by: Xavi Hernandez Juan <xhernandez@redhat.com>
1df6c8
---
1df6c8
 xlators/features/locks/src/posix.c | 2 +-
1df6c8
 1 file changed, 1 insertion(+), 1 deletion(-)
1df6c8
1df6c8
diff --git a/xlators/features/locks/src/posix.c b/xlators/features/locks/src/posix.c
1df6c8
index 9db5ac6..4592240 100644
1df6c8
--- a/xlators/features/locks/src/posix.c
1df6c8
+++ b/xlators/features/locks/src/posix.c
1df6c8
@@ -57,7 +57,7 @@ fetch_pathinfo(xlator_t *, inode_t *, int32_t *, char **);
1df6c8
     do {                                                                       \
1df6c8
         pl_local_t *__local = NULL;                                            \
1df6c8
         if (frame->root->client &&                                             \
1df6c8
-            (frame->root->client->opversion < GD_OP_VERSION_3_10_0)) {         \
1df6c8
+            (frame->root->client->opversion < GD_OP_VERSION_3_12_0)) {         \
1df6c8
             __local = frame->local;                                            \
1df6c8
             PL_STACK_UNWIND_AND_FREE(__local, fop, frame, op_ret, params);     \
1df6c8
         } else {                                                               \
1df6c8
-- 
1df6c8
1.8.3.1
1df6c8