diff options
author | Thomas Munro <tmunro@postgresql.org> | 2020-01-27 09:05:27 +1300 |
---|---|---|
committer | Thomas Munro <tmunro@postgresql.org> | 2020-01-27 09:12:56 +1300 |
commit | f37ff03478aefb5e01d748b85ad86e6213624992 (patch) | |
tree | 9e364e747d5b157a43e06ad9b83fe4f2949ab453 /src/backend/utils/adt/jsonfuncs.c | |
parent | 215824f9188a2b19f870e6a707c5a81e1ac3f1fc (diff) | |
download | postgresql-f37ff03478aefb5e01d748b85ad86e6213624992.tar.gz postgresql-f37ff03478aefb5e01d748b85ad86e6213624992.zip |
Refactor confusing code in _mdfd_openseg().
As reported independently by a couple of people, _mdfd_openseg() is coded in a
way that seems to imply that the segments could be opened in an order that
isn't strictly sequential. Even if that were true, it's also using the wrong
comparison. It's not an active bug, since the condition is always true anyway,
but it's confusing, so replace it with an assertion.
Author: Thomas Munro
Reviewed-by: Andres Freund, Kyotaro Horiguchi, Noah Misch
Discussion: https://postgr.es/m/CA%2BhUKG%2BNBw%2BuSzxF1os-SO6gUuw%3DcqO5DAybk6KnHKzgGvxhxA%40mail.gmail.com
Discussion: https://postgr.es/m/20191222091930.GA1280238%40rfd.leadboat.com
Diffstat (limited to 'src/backend/utils/adt/jsonfuncs.c')
0 files changed, 0 insertions, 0 deletions