]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: sample: remove duplicate "stopping" sample fetch keyword
authorWilly Tarreau <w@1wt.eu>
Fri, 26 Mar 2021 11:01:39 +0000 (12:01 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 26 Mar 2021 15:23:45 +0000 (16:23 +0100)
The "stopping" sample fetch keyword was accidently duplicated in 1.9
by commit 70fe94419 ("MINOR: sample: add cpu_calls, cpu_ns_avg,
cpu_ns_tot, lat_ns_avg, lat_ns_tot"). This has no effect so no
backport is needed.

src/sample.c

index ea60b935bdda1e68d3add2d2fda9c37d93581dd5..81c96bb7661922ee43eebe5bcc4595557328b9a6 100644 (file)
@@ -4038,7 +4038,6 @@ static struct sample_fetch_kw_list smp_kws = {ILH, {
        { "thread",       smp_fetch_thread,  0,          NULL, SMP_T_SINT, SMP_USE_INTRN },
        { "rand",         smp_fetch_rand,  ARG1(0,SINT), NULL, SMP_T_SINT, SMP_USE_INTRN },
        { "stopping",     smp_fetch_stopping, 0,         NULL, SMP_T_BOOL, SMP_USE_INTRN },
-       { "stopping",     smp_fetch_stopping, 0,         NULL, SMP_T_BOOL, SMP_USE_INTRN },
        { "uuid",         smp_fetch_uuid,  ARG1(0, SINT),      smp_check_uuid, SMP_T_STR, SMP_USE_INTRN },
 
        { "cpu_calls",    smp_fetch_cpu_calls,  0,       NULL, SMP_T_SINT, SMP_USE_INTRN },