From b7ca55561e55c2d741c7a5b380e7cca884fa0e3f Mon Sep 17 00:00:00 2001 From: tanlang Date: Fri, 29 Dec 2023 17:13:08 +0800 Subject: [PATCH] fix: compose two store should sync --- venus-shared/blockstore/splitstore/compose_store.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/venus-shared/blockstore/splitstore/compose_store.go b/venus-shared/blockstore/splitstore/compose_store.go index 187eee9abf..0ca0149d6a 100644 --- a/venus-shared/blockstore/splitstore/compose_store.go +++ b/venus-shared/blockstore/splitstore/compose_store.go @@ -45,6 +45,12 @@ func Compose(bs ...blockstore.Blockstore) *ComposeStore { primary: bs[0], secondary: bs[0], } + case 2: + return &ComposeStore{ + shouldSync: true, + primary: bs[1], + secondary: bs[0], + } } ret := &ComposeStore{