From 1f3c3930d1c7b7a4758e7b9b442dc33a1477df6c Mon Sep 17 00:00:00 2001 From: crazycs Date: Wed, 3 Apr 2019 02:40:45 +0800 Subject: [PATCH] model: add MaxShardRowIDBits to table info to record the max ShardRowIDBits be used so far (#252) * model: add MaxShardRowIDBits to table info to record the max ShardRowIDBits be used so far * address comment --- model/model.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/model/model.go b/model/model.go index 248fb9ffa..994a272a1 100644 --- a/model/model.go +++ b/model/model.go @@ -212,6 +212,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 `json:"max_shard_row_id_bits"` Partition *PartitionInfo `json:"partition"`