Commit Graph

2 Commits (0ae8bebd755cf4aa579b9c38e6ea4792dfdbe53a)

Author SHA1 Message Date
Edd Robinson a06dc0fd7f fix(storage): prevent data-races on predicate
Fixes #15817

This commit addresses several data-races on the `tsm1.Predicate` type
that were causing a live-lock or similar in rare cases during a delete.

Because `tsm1/FileStore.Apply` executes concurrently across TSM files
the state of the delete's predicate was being unsafely mutated.

This commit adds a `Clone` method to the `influxdb.Predicate` type,
which should be used whenever an `influxdb.Predicate` implementation
needs to be used concurrently.
2020-01-09 10:00:25 +00:00
Kelvin Wang f04bf7a9a7 feat(influxdb): add delete interface 2019-10-18 12:02:52 -04:00