Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd2181b3

Browse files
committed
Remove assertion in pgstat_count_io_op()
An equivalent check is done with pgstat_is_ioop_tracked_in_bytes(), sothere is no need for this extra one. Small cleanup that should havebeen included inf92c854.Author: Nazir Bilal YavuzReviewed-by: Bertrand DrouvotDiscussion:https://postgr.es/m/CAN55FZ0oqxBaaHAEsj=xFqkzE3n5P=3RA1V_igXwL-RV7QRzyw@mail.gmail.com
1 parentf92c854 commitd2181b3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

‎src/backend/utils/activity/pgstat_io.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ pgstat_count_io_op(IOObject io_object, IOContext io_context, IOOp io_op,
7878
{
7979
Assert((unsignedint)io_object<IOOBJECT_NUM_TYPES);
8080
Assert((unsignedint)io_context<IOCONTEXT_NUM_TYPES);
81-
Assert((unsignedint)io_op<IOOP_NUM_TYPES);
8281
Assert(pgstat_is_ioop_tracked_in_bytes(io_op)||bytes==0);
8382
Assert(pgstat_tracks_io_op(MyBackendType,io_object,io_context,io_op));
8483

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp