Skip to content

Commit

Permalink
model: add MaxShardRowIDBits to table info to record the max ShardRow…
Browse files Browse the repository at this point in the history
…IDBits be used so far (pingcap#252)

* model: add MaxShardRowIDBits to table info to record the max ShardRowIDBits be used so far

* address comment
  • Loading branch information
crazycs520 authored and kennytm committed Apr 2, 2019
1 parent 7ca9b08 commit 1f3c393
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`

Expand Down

0 comments on commit 1f3c393

Please sign in to comment.