postgres.git / summary / log / commit / refs

commit    d2181b321852d4dbea8a909d2f039ebdcbf0e009
Author:   Michael Paquier <michael@paquier.xyz>
Date:     Tue Jan 14 03:19:51 2025 +0000
First released in: 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


src/backend/utils/activity/pgstat_io.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/backend/utils/activity/pgstat_io.c b/src/backend/utils/activity/pgstat_io.c index 78b01310d8b..e03b021af3d 100644 --- a/src/backend/utils/activity/pgstat_io.c +++ b/src/backend/utils/activity/pgstat_io.c @@ -78,7 +78,6 @@ pgstat_count_io_op(IOObject io_object, IOContext io_context, IOOp io_op, { Assert((unsigned int) io_object < IOOBJECT_NUM_TYPES); Assert((unsigned int) io_context < IOCONTEXT_NUM_TYPES); - Assert((unsigned int) io_op < IOOP_NUM_TYPES); Assert(pgstat_is_ioop_tracked_in_bytes(io_op) || bytes == 0); Assert(pgstat_tracks_io_op(MyBackendType, io_object, io_context, io_op)); [parent: f92c854cf406]