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.
|
// newTwoPhaseCommitter creates a twoPhaseCommitter.
|
||||||
func newTwoPhaseCommitter(txn *KVTxn, sessionID uint64) (*twoPhaseCommitter, error) {
|
func newTwoPhaseCommitter(txn *KVTxn, sessionID uint64) (*twoPhaseCommitter, error) {
|
||||||
return &twoPhaseCommitter{
|
return &twoPhaseCommitter{
|
||||||
store: txn.store,
|
store: txn.store,
|
||||||
txn: txn,
|
txn: txn,
|
||||||
startTS: txn.StartTS(),
|
startTS: txn.StartTS(),
|
||||||
sessionID: sessionID,
|
sessionID: sessionID,
|
||||||
regionTxnSize: map[uint64]int{},
|
regionTxnSize: map[uint64]int{},
|
||||||
isPessimistic: txn.IsPessimistic(),
|
isPessimistic: txn.IsPessimistic(),
|
||||||
binlog: txn.binlog,
|
binlog: txn.binlog,
|
||||||
diskFullOpt: kvrpcpb.DiskFullOpt_NotAllowedOnFull,
|
diskFullOpt: kvrpcpb.DiskFullOpt_NotAllowedOnFull,
|
||||||
|
resourceGroupName: txn.resourceGroupName,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue