diff --git a/blockstore/splitstore/splitstore_reify.go b/blockstore/splitstore/splitstore_reify.go index dc44ab21c..652900747 100644 --- a/blockstore/splitstore/splitstore_reify.go +++ b/blockstore/splitstore/splitstore_reify.go @@ -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 } diff --git a/blockstore/splitstore/splitstore_test.go b/blockstore/splitstore/splitstore_test.go index 6b7e60e6c..c7f9cb6fc 100644 --- a/blockstore/splitstore/splitstore_test.go +++ b/blockstore/splitstore/splitstore_test.go @@ -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)