26 lines
713 B
C
26 lines
713 B
C
#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 |