Skip to content

Commit

Permalink
fix: compose two store should sync
Browse files Browse the repository at this point in the history
  • Loading branch information
LinZexiao committed Dec 29, 2023
1 parent 3f7daef commit b7ca555
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions venus-shared/blockstore/splitstore/compose_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit b7ca555

Please sign in to comment.