@@ -39,23 +39,21 @@ const (
3939
4040// tikvSnapshot implements the kv.Snapshot interface.
4141type tikvSnapshot struct {
42- store * tikvStore
43- version kv.Version
44- isolationLevel kv.IsoLevel
45- priority pb.CommandPri
46- notFillCache bool
47- syncLog bool
42+ store * tikvStore
43+ version kv.Version
44+ priority pb.CommandPri
45+ notFillCache bool
46+ syncLog bool
4847}
4948
5049var snapshotGP = gp .New (time .Minute )
5150
5251// newTiKVSnapshot creates a snapshot of an TiKV store.
5352func newTiKVSnapshot (store * tikvStore , ver kv.Version ) * tikvSnapshot {
5453 return & tikvSnapshot {
55- store : store ,
56- version : ver ,
57- isolationLevel : kv .SI ,
58- priority : pb .CommandPri_Normal ,
54+ store : store ,
55+ version : ver ,
56+ priority : pb .CommandPri_Normal ,
5957 }
6058}
6159
@@ -146,9 +144,8 @@ func (s *tikvSnapshot) batchGetSingleRegion(bo *Backoffer, batch batchKeys, coll
146144 Version : s .version .Ver ,
147145 },
148146 Context : pb.Context {
149- Priority : s .priority ,
150- IsolationLevel : pbIsolationLevel (s .isolationLevel ),
151- NotFillCache : s .notFillCache ,
147+ Priority : s .priority ,
148+ NotFillCache : s .notFillCache ,
152149 },
153150 }
154151 resp , err := sender .SendReq (bo , req , batch .region , ReadTimeoutMedium )
@@ -228,9 +225,8 @@ func (s *tikvSnapshot) get(bo *Backoffer, k kv.Key) ([]byte, error) {
228225 Version : s .version .Ver ,
229226 },
230227 Context : pb.Context {
231- Priority : s .priority ,
232- IsolationLevel : pbIsolationLevel (s .isolationLevel ),
233- NotFillCache : s .notFillCache ,
228+ Priority : s .priority ,
229+ NotFillCache : s .notFillCache ,
234230 },
235231 }
236232 for {
0 commit comments