Skip to content

Commit

Permalink
support middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
dk-lockdown committed Jul 27, 2022
1 parent 599621d commit 1f4310a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/core/distributed_transaction_manger.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,12 @@ func (manager *DistributedTransactionManager) processGlobalSessions() error {
if err := manager.storageDriver.DeleteGlobalSession(context.Background(), gs.XID); err != nil {
return err
}
log.Debugf("global session finished, key: %s", gs.XID)
if gs.Status == api.Committing {
log.Debugf("global session commit finished, key: %s", gs.XID)
}
if gs.Status == api.Rollbacking {
log.Debugf("global session rollback finished, key: %s", gs.XID)
}
}
}
}
Expand Down

0 comments on commit 1f4310a

Please sign in to comment.