Skip to content

Commit

Permalink
Merge pull request #8132 from filecoin-project/fix/disable-reify
Browse files Browse the repository at this point in the history
temporarily disable reification
  • Loading branch information
magik6k authored Feb 17, 2022
2 parents 72021b3 + 899a65a commit 81d2fd6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions blockstore/splitstore/splitstore_reify.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
1 change: 1 addition & 0 deletions blockstore/splitstore/splitstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 81d2fd6

Please sign in to comment.