Skip to content

Commit

Permalink
some tweaks in badger markset
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo committed Jul 23, 2021
1 parent 245ae3b commit 7ae96bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blockstore/splitstore/markset_badger.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type BadgerMarkSet struct {

var _ MarkSet = (*BadgerMarkSet)(nil)

var badgerMarkSetBatchSize = 65536
var badgerMarkSetBatchSize = 16384

func NewBadgerMarkSetEnv(path string) (MarkSetEnv, error) {
msPath := filepath.Join(path, "markset.badger")
Expand Down Expand Up @@ -113,13 +113,13 @@ func (s *BadgerMarkSet) Mark(c cid.Cid) error {

defer func() {
s.mx.Lock()
defer s.mx.Unlock()

delete(s.writing, seqno)
s.writers--
if s.writers == 0 {
s.cond.Broadcast()
}
s.mx.Unlock()
}()

empty := []byte{} // not nil
Expand Down

0 comments on commit 7ae96bf

Please sign in to comment.