(to be reverted) add debug.PrintStack.

This commit is contained in:
Raúl Kripalani 2020-11-10 15:22:17 +00:00
parent 360194b29b
commit f8c3756ac0

View File

@ -4,6 +4,7 @@ import (
"context" "context"
"fmt" "fmt"
"io" "io"
"runtime/debug"
"sync/atomic" "sync/atomic"
"github.com/dgraph-io/badger/v2" "github.com/dgraph-io/badger/v2"
@ -187,6 +188,9 @@ func (b *Blockstore) Get(cid cid.Cid) (blocks.Block, error) {
return nil, ErrBlockstoreClosed return nil, ErrBlockstoreClosed
} }
fmt.Println("***** badger/blockstore.Get called:")
debug.PrintStack()
k, pooled := b.PooledStorageKey(cid) k, pooled := b.PooledStorageKey(cid)
if pooled { if pooled {
defer KeyPool.Put(k) defer KeyPool.Put(k)