From efdac0eefa14f89b59f3f6a25df12966b7e28168 Mon Sep 17 00:00:00 2001 From: Uday Patil Date: Thu, 16 Nov 2023 17:21:03 -0500 Subject: [PATCH] add logs --- store/multiversion/store.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/store/multiversion/store.go b/store/multiversion/store.go index 66f9350e5..365ad7c21 100644 --- a/store/multiversion/store.go +++ b/store/multiversion/store.go @@ -296,6 +296,11 @@ func (s *Store) validateIterator(index int, tracker iterationTracker, logger log var parentIter types.Iterator expectedKeys := iterationTracker.iteratedKeys iter := s.newMVSValidationIterator(index, iterationTracker.startKey, iterationTracker.endKey, items, iterationTracker.ascending, iterationTracker.writeset, abortChan) + // log parent iter + logIter := s.parentStore.Iterator(iterationTracker.startKey, iterationTracker.endKey) + for ; logIter.Valid(); logIter.Next() { + logger.Info("parent iter", "index", index, "key", logIter.Key()) + } if iterationTracker.ascending { parentIter = s.parentStore.Iterator(iterationTracker.startKey, iterationTracker.endKey) } else {