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