add type SFBinlogWriterStat

connection_manager
YuQing 2021-02-10 11:33:48 +08:00
parent 11165cbb20
commit 3a4a7069b9
2 changed files with 9 additions and 1 deletions

View File

@ -39,10 +39,11 @@ typedef struct idempotency_request_result {
typedef struct idempotency_request { typedef struct idempotency_request {
uint64_t req_id; uint64_t req_id;
volatile int ref_count; volatile int ref_count;
bool finished; volatile bool finished;
IdempotencyRequestResult output; IdempotencyRequestResult output;
struct fast_mblock_man *allocator; //for free struct fast_mblock_man *allocator; //for free
struct idempotency_request *next; struct idempotency_request *next;
struct fast_task_info *task; //for debug
} IdempotencyRequest; } IdempotencyRequest;
typedef struct idempotency_request_htable { typedef struct idempotency_request_htable {

View File

@ -102,6 +102,13 @@ typedef struct sf_space_stat {
int64_t used; int64_t used;
} SFSpaceStat; } SFSpaceStat;
typedef struct sf_binlog_writer_stat {
int64_t total_count;
int64_t next_version;
int waiting_count;
int max_waitings;
} SFBinlogWriterStat;
typedef struct sf_version_range { typedef struct sf_version_range {
int64_t first; //including int64_t first; //including
int64_t last; //including int64_t last; //including