Skip to content

Commit 1b8611a

Browse files
committed
add CellTTL version control
1 parent a042849 commit 1b8611a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,12 @@ public static boolean isReturnOneResultSupport() {
9292
}
9393

9494
public static boolean isHBaseBatchGetSupport() {
95-
return (OB_VERSION >= OB_VERSION_4_2_5_2 && OB_VERSION < OB_VERSION_4_3_0_0) ||
96-
OB_VERSION >= OB_VERSION_4_3_5_0;
95+
return (OB_VERSION >= OB_VERSION_4_2_5_2 && OB_VERSION < OB_VERSION_4_3_0_0)
96+
|| OB_VERSION >= OB_VERSION_4_3_5_0;
97+
}
98+
99+
public static boolean isCellTTLSupport() {
100+
return OB_VERSION >= OB_VERSION_4_3_5_1;
97101
}
98102

99103
public static final long OB_VERSION_4_2_3_0 = calcVersion(4, (short) 2, (byte) 3, (byte) 0);
@@ -106,5 +110,7 @@ public static boolean isHBaseBatchGetSupport() {
106110

107111
public static final long OB_VERSION_4_3_5_0 = calcVersion(4, (short) 3, (byte) 5, (byte) 0);
108112

113+
public static final long OB_VERSION_4_3_5_1 = calcVersion(4, (short) 3, (byte) 5, (byte) 1);
114+
109115
public static long OB_VERSION = calcVersion(0, (short) 0, (byte) 0, (byte) 0);
110116
}

0 commit comments

Comments
 (0)