Skip to content

Commit

Permalink
fix sca
Browse files Browse the repository at this point in the history
  • Loading branch information
gouhongshen committed Dec 18, 2024
1 parent 8c8eeb7 commit eaa58d2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion pkg/txn/storage/tae/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (s *taeStorage) Write(
//case uint32(apipb.OpCode_OpPreCommit):
// return HandleWrite(ctx, txnMeta, payload, s.taeHandler.HandlePreCommitWrite)
//case uint32(apipb.OpCode_OpCommitMerge):
return HandleWrite(ctx, txnMeta, payload, s.taeHandler.HandleCommitMerge)
//return HandleWrite(ctx, txnMeta, payload, s.taeHandler.HandleCommitMerge)
//default:
// return nil, moerr.NewNotSupportedf(ctx, "unknown write op: %v", op)
//}
Expand Down
2 changes: 1 addition & 1 deletion pkg/vm/engine/tae/rpc/handle_2pc.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ package rpc

import (
"context"
"github.com/matrixorigin/matrixone/pkg/vm/engine/tae/iface/txnif"

"github.com/matrixorigin/matrixone/pkg/container/types"
"github.com/matrixorigin/matrixone/pkg/pb/timestamp"
"github.com/matrixorigin/matrixone/pkg/pb/txn"
"github.com/matrixorigin/matrixone/pkg/vm/engine/tae/iface/txnif"
)

///
Expand Down
11 changes: 0 additions & 11 deletions pkg/vm/engine/test/testutil/tae_engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,6 @@ func (ts *TestTxnStorage) Commit(ctx context.Context, request *txn.TxnRequest, r
resp.Txn = &req.Txn
}

//if request.CommitRequest != nil {
// for _, req := range request.CommitRequest.Payload {
// //response is shared by all requests
// prepareResponse(req, response)
// err := ts.Write(ctx, req, response)
// if err != nil {
// return err
// }
// }
//}

prepareResponse(request, response)

cts, err := ts.txnHandler.HandleCommit(ctx, request.Txn, response, request.CommitRequest)
Expand Down

0 comments on commit eaa58d2

Please sign in to comment.