Merge pull request #8132 from filecoin-project/fix/disable-reify
temporarily disable reification
This commit is contained in:
commit
81d2fd615d
@ -10,7 +10,13 @@ import (
|
|||||||
cid "github.com/ipfs/go-cid"
|
cid "github.com/ipfs/go-cid"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var EnableReification = false
|
||||||
|
|
||||||
func (s *SplitStore) reifyColdObject(c cid.Cid) {
|
func (s *SplitStore) reifyColdObject(c cid.Cid) {
|
||||||
|
if !EnableReification {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if !s.isWarm() {
|
if !s.isWarm() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -496,6 +496,7 @@ func testSplitStoreReification(t *testing.T, f func(context.Context, blockstore.
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestSplitStoreReification(t *testing.T) {
|
func TestSplitStoreReification(t *testing.T) {
|
||||||
|
EnableReification = true
|
||||||
t.Log("test reification with Has")
|
t.Log("test reification with Has")
|
||||||
testSplitStoreReification(t, func(ctx context.Context, s blockstore.Blockstore, c cid.Cid) error {
|
testSplitStoreReification(t, func(ctx context.Context, s blockstore.Blockstore, c cid.Cid) error {
|
||||||
_, err := s.Has(ctx, c)
|
_, err := s.Has(ctx, c)
|
||||||
|
Loading…
Reference in New Issue
Block a user