Fix compilation failure in rdb_perf_context.h

Rdb_atomic_perf_counters uses my_io_perf_atomic_struct
which uses atomic_stat from include/atomic_stat.h
which was backported in the previous cset.
This commit is contained in:
Sergei Petrunia 2016-10-09 16:02:13 +00:00
commit 84dd64702a
3 changed files with 19 additions and 0 deletions

View file

@ -41,6 +41,7 @@ SET(ROCKSDB_SOURCES
rdb_sst_info.cc rdb_sst_info.h
rdb_utils.cc rdb_utils.h rdb_buff.h
rdb_threads.cc rdb_threads.h
rdb_mariadb_port.h
${ROCKSDB_LIB_SOURCES}
)

View file

@ -0,0 +1,16 @@
#include "atomic_stat.h"
/* Struct used for IO performance counters, shared among multiple threads */
struct my_io_perf_atomic_struct {
atomic_stat<ulonglong> bytes;
atomic_stat<ulonglong> requests;
atomic_stat<ulonglong> svc_time; /*!< time to do read or write operation */
atomic_stat<ulonglong> svc_time_max;
atomic_stat<ulonglong> wait_time; /*!< total time in the request array */
atomic_stat<ulonglong> wait_time_max;
atomic_stat<ulonglong> slow_ios; /*!< requests that take too long */
};
typedef struct my_io_perf_atomic_struct my_io_perf_atomic_t;

View file

@ -25,6 +25,8 @@
#include "./handler.h"
#include <my_global.h>
#include "rdb_mariadb_port.h"
namespace myrocks {
enum {