pgsql: Remove assertion in pgstat_count_io_op()

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove assertion in pgstat_count_io_op()
Date: 2025-01-14 03:28:46
Message-ID: E1tXXbh-001Ps3-P3@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d2181b321852d4dbea8a909d2f039ebdcbf0e009

Modified Files
--------------
src/backend/utils/activity/pgstat_io.c | 1 -
1 file changed, 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2025-01-14 03:44:30 pgsql: Move information about pgstats kinds into its own header pgstat_
Previous Message Michael Paquier 2025-01-14 03:15:36 pgsql: Make pg_stat_io count IOs as bytes instead of blocks for some op