X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=clients%2Fms_memslap.h;h=30cc715708b189377c210dedc88d2ff8e2949ed9;hb=98c99981e0ebe7f716bea2e4d95434d159103fcd;hp=94b53a7858bf5fa7c688b24e42e10b87535f8131;hpb=d9dab0a24eebad142b33d00ccb0f87b083f02195;p=m6w6%2Flibmemcached diff --git a/clients/ms_memslap.h b/clients/ms_memslap.h index 94b53a78..30cc7157 100644 --- a/clients/ms_memslap.h +++ b/clients/ms_memslap.h @@ -69,7 +69,7 @@ typedef struct statistic /* global status statistic structure */ typedef struct stats { - int32_t active_conns; /* active connections */ + volatile uint32_t active_conns; /* active connections */ uint64_t bytes_read; /* read bytes */ uint64_t bytes_written; /* written bytes */ uint64_t obj_bytes; /* object bytes */ @@ -82,7 +82,7 @@ typedef struct stats uint64_t vef_failed; /* total objects of verification failed */ uint64_t unexp_unget; /* total objects which is unexpired but not get */ uint64_t exp_get; /* total objects which is expired but get */ - uint64_t pkt_disorder; /* disorder packages of UDP */ + volatile uint64_t pkt_disorder; /* disorder packages of UDP */ uint64_t pkt_drop; /* packages dropped of UDP */ uint64_t udp_timeout; /* how many times timeout of UDP happens */ } ms_stats_t;