When the code says you are stupid, but you are too stupid to know that
We recently made some big changes in how we handle writing to the Voron journal. As part of that, we introduced a subtle bug. It would only happen on specific data, and only if you were unlucky enough to hit it with the right time.
It took a lot of effort to track that done, but here is the offending line:
Sometimes, it just isn’t plain that the code is snigger to itself and thinking “stupid”.