(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"
"fmt"
"io"
"runtime/debug"
"sync/atomic"
"github.com/dgraph-io/badger/v2"
@ -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)