From 9d09878eb0990c935dd11cbe8955909730d2bc47 Mon Sep 17 00:00:00 2001 From: crazycs Date: Thu, 21 Mar 2019 10:48:58 +0800 Subject: [PATCH 1/2] model: add MaxShardRowIDBits to table info to record the max ShardRowIDBits be used so far --- model/model.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/model/model.go b/model/model.go index 14125a1e1..2794e160e 100644 --- a/model/model.go +++ b/model/model.go @@ -196,6 +196,8 @@ type TableInfo struct { // ShardRowIDBits specify if the implicit row ID is sharded. ShardRowIDBits uint64 + // MaxShardRowIDBits uses to record the max ShardRowIDBits be used so far. + MaxShardRowIDBits uint64 Partition *PartitionInfo `json:"partition"` From c77dcba657ec832bbb8034fb70a95c7b4faefb5e Mon Sep 17 00:00:00 2001 From: crazycs520 Date: Tue, 2 Apr 2019 18:31:39 +0800 Subject: [PATCH 2/2] address comment --- model/model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/model.go b/model/model.go index 58a7a8f43..2250e3d91 100644 --- a/model/model.go +++ b/model/model.go @@ -213,7 +213,7 @@ type TableInfo struct { // ShardRowIDBits specify if the implicit row ID is sharded. ShardRowIDBits uint64 // MaxShardRowIDBits uses to record the max ShardRowIDBits be used so far. - MaxShardRowIDBits uint64 + MaxShardRowIDBits uint64 `json:"max_shard_row_id_bits"` Partition *PartitionInfo `json:"partition"`