Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Conversation

@awskii
Copy link
Contributor

@awskii awskii commented Mar 27, 2023

No description provided.

predicates.Add(1)
g.Go(func() (err error) {
mf.storage, mf.storageIdx, mf.storageHist, err = a.storage.mergeFiles(ctx, files.storage, files.storageIdx, files.storageHist, r.storage, workers)
predicates.Done()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

always call wg.Done in defer to avoid deadlocks on panic

state/domain.go Outdated

"github.com/RoaringBitmap/roaring/roaring64"
btree2 "github.com/tidwall/btree"
atomic2 "go.uber.org/atomic"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we dropped support of go1.18 in last release. now can use sync/atomic.Int32

}

func (l *KVList) Reset() {
//l.Keys = l.Keys[:0]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer as the first step: get much green tests. And ten introduce prealloc/reset optimizations.

*Domain

etl *etl.Collector
mu sync.RWMutex
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need shared mutex between domains?

//}
return func(k []byte, value []byte, _ etl.CurrentTableReader, next etl.LoadNextFunc) error {
// if its ordered we could put to history each key excluding last one
tx := binary.BigEndian.Uint64(k[len(k)-8:])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tx variable name is reserved for Database Transaction

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants