(to be reverted) add debug.PrintStack.
This commit is contained in:
parent
360194b29b
commit
f8c3756ac0
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user