Merge pull request #8132 from filecoin-project/fix/disable-reify

temporarily disable reification
This commit is contained in:
Łukasz Magiera 2022-02-17 19:30:17 +01:00 committed by GitHub
commit 81d2fd615d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -10,7 +10,13 @@ import (
cid "github.com/ipfs/go-cid"
)
var EnableReification = false
func (s *SplitStore) reifyColdObject(c cid.Cid) {
if !EnableReification {
return
}
if !s.isWarm() {
return
}

View File

@ -496,6 +496,7 @@ func testSplitStoreReification(t *testing.T, f func(context.Context, blockstore.
}
func TestSplitStoreReification(t *testing.T) {
EnableReification = true
t.Log("test reification with Has")
testSplitStoreReification(t, func(ctx context.Context, s blockstore.Blockstore, c cid.Cid) error {
_, err := s.Has(ctx, c)