MINOR: stats-file: fix typo in shm-stats-file object struct size detection

As reported by @TimWolla on GH #3168, there was a typo in shm stats file
BUG_ON to report that the size of shm_stats_file_object changed.

No backport needed.
This commit is contained in:
Aurelien DARRAGON 2025-10-22 09:16:07 +02:00
parent f50425c021
commit 1e4dbebef2

View File

@ -822,7 +822,7 @@ int shm_stats_file_prepare(void)
"it is part of the exported API: ensure all precautions were taken (ie: shm_stats_file "
"version change) before adjusting this");
BUG_ON(sizeof(struct shm_stats_file_object) != 544, "shm_stats_file_object struct size changed, "
"is is part of the exported API: ensure all precautions were taken (ie: shm_stats_file "
"it is part of the exported API: ensure all precautions were taken (ie: shm_stats_file "
"version change) before adjusting this");
/* do nothing if master process or shm_stats_file not configured */