add NtyCo as submodule & 搭建设计ebpf主从同步代码框架
This commit is contained in:
26
dump/kvs_dump.h
Normal file
26
dump/kvs_dump.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef __KVS_DUMP_H__
|
||||
#define __KVS_DUMP_H__
|
||||
|
||||
#include "kvstore.h"
|
||||
|
||||
extern char global_oplog_file[256];
|
||||
extern char global_array_file[256];
|
||||
extern char global_rbtree_file[256];
|
||||
extern char global_hash_file[256];
|
||||
|
||||
int kvs_create_snapshot(const char* array_file, const char* rbtree_file, const char* hash_file);
|
||||
int kvs_create_snapshot_async(const char *ip, int port);
|
||||
void __create_snapshot_ok(const char* array_file, const char* rbtree_file, const char* hash_file);
|
||||
|
||||
extern int global_oplog_fd;
|
||||
|
||||
|
||||
int init_cmd_log(const char *file, int *logfd);
|
||||
int destroy_cmd_log(int logfd);
|
||||
|
||||
int kvs_oplog_append(const uint8_t *cmd, size_t len, int logfd);
|
||||
int kvs_replay_log(int logfd);
|
||||
int ksv_clear_log(int logfd);
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user