system: print number of ops completed at point of failure
test / test (push) Successful in 21s
Details
test / test (push) Successful in 21s
Details
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
parent
2a348c7f91
commit
5b249e4a66
|
@ -94,6 +94,7 @@ func (sys *I) Commit() error {
|
||||||
// sp is set to nil when all ops are applied
|
// sp is set to nil when all ops are applied
|
||||||
if sp != nil {
|
if sp != nil {
|
||||||
// rollback partial commit
|
// rollback partial commit
|
||||||
|
fmsg.VPrintf("commit faulted after %d ops, rolling back partial commit", len(sp.ops))
|
||||||
if err := sp.Revert(&Criteria{nil}); err != nil {
|
if err := sp.Revert(&Criteria{nil}); err != nil {
|
||||||
fmsg.Println("errors returned reverting partial commit:", err)
|
fmsg.Println("errors returned reverting partial commit:", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue