From 5b249e4a661b5bedae3ff6000ece693e0b913073 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Fri, 25 Oct 2024 17:08:21 +0900 Subject: [PATCH] system: print number of ops completed at point of failure Signed-off-by: Ophestra Umiker --- internal/system/op.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/system/op.go b/internal/system/op.go index fcfc29b..7d29377 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) }