Skip to content

Commit

Permalink
*: non-unique index doesn't need store value, write a '0' to reduce s…
Browse files Browse the repository at this point in the history
…pace (pingcap#2218)
  • Loading branch information
tiancaiamao authored Dec 9, 2016
1 parent aca4151 commit d5cf23a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions table/tables/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ func (c *index) Create(rm kv.RetrieverMutator, indexedValues []types.Datum, h in
return 0, errors.Trace(err)
}
if !distinct {
// TODO: reconsider value
err = rm.Set(key, []byte("timestamp?"))
// non-unique index doesn't need store value, write a '0' to reduce space
err = rm.Set(key, []byte{'0'})
return 0, errors.Trace(err)
}

Expand Down

0 comments on commit d5cf23a

Please sign in to comment.