diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-10-25 17:08:21 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-10-25 17:08:21 +0900 |
| commit | 5b249e4a661b5bedae3ff6000ece693e0b913073 (patch) | |
| tree | 2789b029566c825b2f6d06da0b9245226494cf58 /internal/system | |
| parent | 2a348c7f912a17dbb0d29624cb3bef2add9d7492 (diff) | |
system: print number of ops completed at point of failure
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'internal/system')
| -rw-r--r-- | internal/system/op.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/system/op.go b/internal/system/op.go index fcfc29b2..7d293773 100644 --- a/internal/system/op.go +++ b/internal/system/op.go @@ -94,6 +94,7 @@ func (sys *I) Commit() error { // sp is set to nil when all ops are applied if sp != nil { // 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 { fmsg.Println("errors returned reverting partial commit:", err) } |
