Results 445 comments of Jay

We can backport this, but I don't think we need to land it on master. These commands are quite dangerous, if users mis-use these commands, it may lead to unexpected...

Why use bitflags instead of a number?

> For extensibility... In what cases a bitflags is better than number?

> With bitflags we can represent different options with different bits. Do we need that? Though the design makes it possible to control the behavior by configuration, but in the...

I think an easy fix is to change the function https://github.com/tikv/tikv/blob/dcb5e2ccd2582fc2f8d3425c27f9891368658154/components/raftstore/src/store/worker/compact.rs#L177-L192 If there are too many versions, compaction should be triggered for write cf, otherwise stale versions won't be deleted.