mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
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:
parent
20bd26e6df
commit
84dd64702a
3 changed files with 19 additions and 0 deletions
|
|
@ -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}
|
||||
)
|
||||
|
||||
|
|
|
|||
16
storage/rocksdb/rdb_mariadb_port.h
Normal file
16
storage/rocksdb/rdb_mariadb_port.h
Normal 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;
|
||||
|
||||
|
||||
|
|
@ -25,6 +25,8 @@
|
|||
#include "./handler.h"
|
||||
#include <my_global.h>
|
||||
|
||||
#include "rdb_mariadb_port.h"
|
||||
|
||||
namespace myrocks {
|
||||
|
||||
enum {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue