]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: stats-file: fix typo in shm-stats-file object struct size detection
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 22 Oct 2025 07:16:07 +0000 (09:16 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Wed, 22 Oct 2025 18:52:08 +0000 (20:52 +0200)
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.

src/stats-file.c

index 40423116c49647a68a3bad0d6c3b0db52a3664ce..7aefb2f6b3f20f5a53f70103d1e7ab02edb11272 100644 (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 */