🌐 AI搜索 & 代理 主页
Skip to content

Commit 33980ea

Browse files
committed
test_custom_stats: Fix compilation warning
I have fat-fingered an error message related to an offset while switching the code to use pgoff_t. Let's switch to the same error message used in the rest of the tree for similar failures with fseeko(), instead. Per buildfarm members running macos: longfin, sifaka and indri.
1 parent 171198f commit 33980ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/modules/test_custom_stats/test_custom_var_stats.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,8 @@ test_custom_stats_var_from_serialized_data(const PgStat_HashKey *key,
331331
/* Read data from the secondary statistics file, at the specified offset */
332332
if (fseeko(fd_description, offset, SEEK_SET) != 0)
333333
{
334-
elog(WARNING, "failed to seek to offset %ld in description file", offset);
334+
elog(WARNING, "could not seek in file \"%s\": %m",
335+
TEST_CUSTOM_AUX_DATA_DESC);
335336
return false;
336337
}
337338

0 commit comments

Comments
 (0)