Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
util/mon: don't crash when shrinking by too much
Previously, we called `panic` when `Shrink`ing the memory account by too much. Such scenario indicates that our memory accounting is off, but we shouldn't be crashing - we should report an error instead, and this commit does that. Release note (bug fix): Previously, CockroachDB could crash when internal memory accounting hit a discrepancy. Now it will report an error instead.
- Loading branch information