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