Skip to content

Commit

Permalink
kv: remove the useless field of snapshot (#10276)
Browse files Browse the repository at this point in the history
  • Loading branch information
zimulala authored and tiancaiamao committed May 5, 2019
1 parent b6218d4 commit 6f67214
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions kv/union_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ func (c *conditionPair) Err() error {
// snapshot for read.
type unionStore struct {
*BufferStore
snapshot Snapshot // for read
lazyConditionPairs map[string]*conditionPair // for delay check
opts options
}
Expand All @@ -80,7 +79,6 @@ type unionStore struct {
func NewUnionStore(snapshot Snapshot) UnionStore {
return &unionStore{
BufferStore: NewBufferStore(snapshot, DefaultTxnMembufCap),
snapshot: snapshot,
lazyConditionPairs: make(map[string]*conditionPair),
opts: make(map[Option]interface{}),
}
Expand Down

0 comments on commit 6f67214

Please sign in to comment.