Batch is not thread safe #47
Labels
help wanted
Seeking public contribution on this issue
kind/enhancement
A net-new feature or improvement to an existing feature
Looking at batch code, it using an
activeCommits int
andsize int
counters very liberally all over the place. Calling Add(), at the same time asCommit()
seems likely to trigger weird side effects: i.e. size reset to 0 when it should not, oractiveCommits
potentially going on the negative.The text was updated successfully, but these errors were encountered: