X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=clients%2Fms_memslap.h;h=30cc715708b189377c210dedc88d2ff8e2949ed9;hb=ab1cac43b7d6b8401ec0c196ed6bbab84e7c1a49;hp=a2f6254ddbf7f78159733ffb9a7e2cb849f5487f;hpb=a7a011c2ea4a63368b3a96a332da00820ed402cb;p=awesomized%2Flibmemcached diff --git a/clients/ms_memslap.h b/clients/ms_memslap.h index a2f6254d..30cc7157 100644 --- a/clients/ms_memslap.h +++ b/clients/ms_memslap.h @@ -21,7 +21,6 @@ #include #include #include -#include "../config.h" #include "ms_stats.h" @@ -70,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 */ @@ -83,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;