Skip to content

Commit

Permalink
Add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
yzang2019 committed Oct 4, 2023
1 parent 3b16722 commit 505449f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (ndb *nodeDB) extractStateChanges(prevVersion int64, prevRoot []byte, root
for curIter.Valid() {
node := curIter.GetNode()
shared := node.version <= prevVersion
fmt.Printf("curIter is valid with version %d and prevVersion %d\n", node.version, prevVersion)
fmt.Printf("curIter version %d has %d nodesToVisit \n", node.version, len(curIter.nodesToVisit))
curIter.Next(shared)
if shared {
sharedNode = node
Expand Down
1 change: 0 additions & 1 deletion nodedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,6 @@ func (ndb *nodeDB) getPreviousVersion(version int64) (int64, error) {
rootKeyFormat.Scan(k, &pversion)
return pversion, nil
}

if err := itr.Error(); err != nil {
return 0, err
}
Expand Down

0 comments on commit 505449f

Please sign in to comment.