diff --git a/src/backend/storage/smgr/md.c b/src/backend/storage/smgr/md.c index c729557e96c9adbf02f018ef4248ce3c805897d3..8c956bd857423f72b1224483353f134f1b72043a 100644 --- a/src/backend/storage/smgr/md.c +++ b/src/backend/storage/smgr/md.c @@ -1740,7 +1740,7 @@ mdtruncate(SMgrRelation reln, BlockNumber nblocks, bool isTemp, bool allowNotFou */ BlockNumber lastsegblocks = nblocks - priorblocks; - if (!MirroredBufferPool_Truncate(&v->mdmir_open, lastsegblocks * BLCKSZ) < 0) + if (!MirroredBufferPool_Truncate(&v->mdmir_open, lastsegblocks * BLCKSZ)) ereport(ERROR, (errcode_for_file_access(), errmsg("could not truncate relation %u/%u/%u to %u blocks: %m", @@ -1764,7 +1764,7 @@ mdtruncate(SMgrRelation reln, BlockNumber nblocks, bool isTemp, bool allowNotFou priorblocks += RELSEG_SIZE; } #else - if (!MirroredBufferPool_Truncate(&v->mdmir_open, nblocks * BLCKSZ) < 0) + if (!MirroredBufferPool_Truncate(&v->mdmir_open, nblocks * BLCKSZ)) ereport(ERROR, (errcode_for_file_access(), errmsg("could not truncate relation %u/%u/%u to %u blocks: %m",