Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage: fix accounting for orig LiveBytes in updateStatsOnResolve
This commit fixes a latent bug where `updateStatsOnResolve`'s attempt to discount the effect of the previous intent's key and value size on the stats' `LiveBytes` field used the new value's size instead of the old value's size. I've tracked this back to 92cad17. This is currently harmless because intent value sizes never change during intent resolution. However, this may not be the case in the future. For instance, this will not be the case if we store local timestamps in an `MVCCValue` wrapper object, as is being explored in #77342.
- Loading branch information