mirror of https://github.com/tikv/client-go.git
set group name in twoPhaseCommitter (#718)
Signed-off-by: glorv <glorvs@163.com>
This commit is contained in:
parent
891ef575be
commit
596b79404d
|
|
@ -454,14 +454,15 @@ func (c *PlainMutations) AppendMutation(mutation PlainMutation) {
|
|||
// newTwoPhaseCommitter creates a twoPhaseCommitter.
|
||||
func newTwoPhaseCommitter(txn *KVTxn, sessionID uint64) (*twoPhaseCommitter, error) {
|
||||
return &twoPhaseCommitter{
|
||||
store: txn.store,
|
||||
txn: txn,
|
||||
startTS: txn.StartTS(),
|
||||
sessionID: sessionID,
|
||||
regionTxnSize: map[uint64]int{},
|
||||
isPessimistic: txn.IsPessimistic(),
|
||||
binlog: txn.binlog,
|
||||
diskFullOpt: kvrpcpb.DiskFullOpt_NotAllowedOnFull,
|
||||
store: txn.store,
|
||||
txn: txn,
|
||||
startTS: txn.StartTS(),
|
||||
sessionID: sessionID,
|
||||
regionTxnSize: map[uint64]int{},
|
||||
isPessimistic: txn.IsPessimistic(),
|
||||
binlog: txn.binlog,
|
||||
diskFullOpt: kvrpcpb.DiskFullOpt_NotAllowedOnFull,
|
||||
resourceGroupName: txn.resourceGroupName,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue