Skip to content

Commit 21132fc

Browse files
authored
adapt for disable/enable table (#340)
1 parent af96e89 commit 21132fc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/main/java/com/alipay/oceanbase/rpc/meta/ObTableRpcMetaType.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ public enum ObTableRpcMetaType {
2727
HTABLE_TRUNCATE_TABLE(6), // 清空表
2828
HTABLE_EXISTS(7), // 检查表是否存在
2929
HTABLE_GET_DESC(8), // 获取表元信息
30+
HTABLE_ENABLE_TABLE(9),
31+
HTABLE_DISABLE_TABLE(10),
3032
HTABLE_META_MAX(255);
3133
private int type;
3234

src/main/java/com/alipay/oceanbase/rpc/protocol/payload/ResultCodes.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,8 @@ public enum ResultCodes {
742742
OB_KV_REDIS_PARSE_ERROR(-10515), //
743743
OB_KV_HBASE_INCR_FIELD_IS_NOT_LONG(-10516), //
744744
OB_KV_CHECK_FAILED(-10518), //
745+
OB_KV_TABLE_NOT_DISABLED(-10519), //
746+
OB_KV_TABLE_NOT_ENABLED(-10520), //
745747
OB_KV_ODP_TIMEOUT(-10650), //
746748
OB_ERR_KV_ROUTE_ENTRY_EXPIRE(-10653);
747749

0 commit comments

Comments
 (0)