-
Type:
Technical Debt
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
StorEng - Defined Pipeline
-
3
In __wt_gen_drain, there is a check on the generation variable to know whether it's WT_GEN_EVICT or WT_GEN_CHECKPOINT to enable more logs when we are about to timeout. There are two issues related to this:
- The generation code should not reference specific users. It is supposed to be a generic implementation used by different codes. We should look into removing those checks.
- The other issue is the potential dead code related to the WT_GEN_CHECKPOINT section. Indeed, it seems that _wt_gen_drain is called by _wt_gen_next_drain which is only called with WT_GEN_EVICT. By fixing the first bullet point, this one should disappear.