Remove assertion in pgstat_count_io_op()

Michael Paquier <michael@paquier.xyz>

Commit: d2181b321852d4dbea8a909d2f039ebdcbf0e009
Author: Michael Paquier <michael@paquier.xyz>
Date: 2025-01-14T03:19:51Z
Releases: 18.0
Remove assertion in pgstat_count_io_op()

An equivalent check is done with pgstat_is_ioop_tracked_in_bytes(), so
there is no need for this extra one.  Small cleanup that should have
been included in f92c854cf406.

Author: Nazir Bilal Yavuz
Reviewed-by: Bertrand Drouvot
Discussion: https://postgr.es/m/CAN55FZ0oqxBaaHAEsj=xFqkzE3n5P=3RA1V_igXwL-RV7QRzyw@mail.gmail.com

Files

PathChange+/−
src/backend/utils/activity/pgstat_io.c modified +0 −1

Discussion