Skip to content

Commit

Permalink
(to be reverted) add debug.PrintStack.
Browse files Browse the repository at this point in the history
  • Loading branch information
raulk committed Nov 10, 2020
1 parent 360194b commit f8c3756
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/blockstore/badger/blockstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"fmt"
"io"
"runtime/debug"
"sync/atomic"

"github.com/dgraph-io/badger/v2"
Expand Down Expand Up @@ -187,6 +188,9 @@ func (b *Blockstore) Get(cid cid.Cid) (blocks.Block, error) {
return nil, ErrBlockstoreClosed
}

fmt.Println("***** badger/blockstore.Get called:")
debug.PrintStack()

k, pooled := b.PooledStorageKey(cid)
if pooled {
defer KeyPool.Put(k)
Expand Down

0 comments on commit f8c3756

Please sign in to comment.