Skip to content

Commit 63da8e6

Browse files
committed
fixup! StartReadBuffers debug stuff
1 parent 56a7184 commit 63da8e6

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

src/backend/storage/buffer/bufmgr.c

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1884,12 +1884,14 @@ AsyncReadBuffers(ReadBuffersOperation *operation, int *nblocks_progress)
18841884
operation->nblocks_done += 1;
18851885
*nblocks_progress = 1;
18861886

1887+
#if 0
18871888
ereport(DEBUG3,
18881889
errmsg("%s - trunc: %d",
18891890
__func__,
18901891
operation->nblocks_done),
18911892
errhidestmt(true),
18921893
errhidecontext(true));
1894+
#endif
18931895

18941896
pgaio_io_release(ioh);
18951897
pgaio_wref_clear(&operation->io_wref);
@@ -7313,6 +7315,18 @@ buffer_stage_common(PgAioHandle *ioh, bool is_write, bool is_temp)
73137315
: GetBufferDescriptor(buffer - 1);
73147316
uint32 buf_state;
73157317

7318+
#if 0
7319+
ereport(DEBUG3,
7320+
errmsg("%s: io: %d, off: %d/%d, buffer: %d,",
7321+
__func__,
7322+
pgaio_io_get_id(ioh),
7323+
i, handle_data_len,
7324+
buffer
7325+
),
7326+
errhidestmt(true),
7327+
errhidecontext(true));
7328+
#endif
7329+
73167330
/*
73177331
* Check that all the buffers are actually ones that could conceivably
73187332
* be done in one IO, i.e. are sequential. This is the last
@@ -7731,6 +7745,20 @@ buffer_readv_complete(PgAioHandle *ioh, PgAioResult prior_result,
77317745
prior_result.status == PGAIO_RS_ERROR
77327746
|| prior_result.result <= buf_off;
77337747

7748+
#if 0
7749+
ereport(DEBUG3,
7750+
errmsg("%s: io %d: %d/%d: buffer: %d, failed: %d, temp: %d",
7751+
__func__,
7752+
pgaio_io_get_id(ioh),
7753+
buf_off, handle_data_len,
7754+
buf,
7755+
failed,
7756+
is_temp
7757+
),
7758+
errhidestmt(true),
7759+
errhidecontext(true));
7760+
#endif
7761+
77347762
buffer_readv_complete_one(td, buf_off, buf, cb_data, failed, is_temp,
77357763
&failed_verification,
77367764
&failed_checksum,

0 commit comments

Comments
 (0)