Skip to content

Commit

Permalink
fix union batch get
Browse files Browse the repository at this point in the history
Signed-off-by: you06 <[email protected]>
  • Loading branch information
you06 committed Jan 29, 2025
1 parent 6eaaf92 commit 79fc917
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/store/driver/txn/batch_getter.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ func (b tikvBatchBufferSnapshotGetter) Get(ctx context.Context, k []byte) ([]byt

func (b tikvBatchBufferSnapshotGetter) BatchGet(ctx context.Context, keys [][]byte) (map[string][]byte, error) {
bufferValues := make(map[string][]byte, len(keys))
if b.tidbMiddleCache != nil {
if b.tidbSnapshotBuffer != nil {
for _, key := range keys {
val, err := b.tidbMiddleCache.Get(ctx, key)
val, err := b.tidbSnapshotBuffer.Get(ctx, key)
if err != nil {
if kv.IsErrNotFound(err) {
continue
Expand Down

0 comments on commit 79fc917

Please sign in to comment.