From 744428fa9436e88c4363b715e27401e0be3c812b Mon Sep 17 00:00:00 2001 From: Uday Patil Date: Thu, 16 Nov 2023 14:30:05 -0500 Subject: [PATCH] add log --- tasks/scheduler.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/scheduler.go b/tasks/scheduler.go index 82138ad01..623982022 100644 --- a/tasks/scheduler.go +++ b/tasks/scheduler.go @@ -100,7 +100,9 @@ func (s *scheduler) findConflicts(task *deliverTxTask) (bool, []int) { valid := true for sk, mv := range s.multiVersionStores { ok, mvConflicts := mv.ValidateTransactionState(task.Index) - task.Ctx.Logger().Info("Validating MVS", "storeKey", sk.Name(), "ok", ok, "conflicts", mvConflicts) + if !ok { + task.Ctx.Logger().Info("Validating MVS", "idx", task.Index, "storeKey", sk.Name(), "conflicts", mvConflicts, "readset", mv.GetReadset(task.Index)) + } for _, c := range mvConflicts { if _, ok := uniq[c]; !ok { conflicts = append(conflicts, c)