Skip to content

Commit 2d40237

Browse files
committed
[Fix] allow 433 to use LsOp for testing
1 parent 440954f commit 2d40237

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/main/java/com/alipay/oceanbase/rpc/ObGlobal.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,14 @@ public static String getObVsnString(long version) {
8181
getObVsnMajorPatch(version), getObVsnMinorPatch(version));
8282
}
8383

84+
// todo: use OB_VERSION_4_3_4_0 after observer upgrade version
8485
public static boolean isLsOpSupport() {
85-
return (OB_VERSION >= OB_VERSION_4_2_3_0 && OB_VERSION < OB_VERSION_4_3_0_0) ||
86-
(OB_VERSION >= OB_VERSION_4_3_4_0);
86+
return OB_VERSION >= OB_VERSION_4_2_3_0 && OB_VERSION < OB_VERSION_4_3_0_0 || OB_VERSION >= OB_VERSION_4_3_3_0;
8787
}
8888

89+
// todo: use OB_VERSION_4_3_4_0 after observer upgrade version
8990
public static boolean isReturnOneResultSupport() {
90-
return OB_VERSION >= OB_VERSION_4_2_3_0 && OB_VERSION < OB_VERSION_4_3_0_0 || OB_VERSION >= OB_VERSION_4_3_4_0;
91+
return OB_VERSION >= OB_VERSION_4_2_3_0 && OB_VERSION < OB_VERSION_4_3_0_0 || OB_VERSION >= OB_VERSION_4_3_3_0;
9192
}
9293

9394
public static final long OB_VERSION_4_2_1_0 = calcVersion(4, (short) 2, (byte) 1, (byte) 0);
@@ -96,6 +97,7 @@ public static boolean isReturnOneResultSupport() {
9697

9798
public static final long OB_VERSION_4_3_0_0 = calcVersion(4, (short) 3, (byte) 0, (byte) 0);
9899

100+
public static final long OB_VERSION_4_3_3_0 = calcVersion(4, (short) 3, (byte) 3, (byte) 0);
99101
public static final long OB_VERSION_4_3_4_0 = calcVersion(4, (short) 3, (byte) 4, (byte) 0);
100102

101103
public static long OB_VERSION = calcVersion(0, (short) 0, (byte) 0, (byte) 0);

0 commit comments

Comments
 (0)