mmap加载配置文件,uring实现持久化
This commit is contained in:
14
kvs_oplog.h
Normal file
14
kvs_oplog.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef __KVS_INC_LOG_H__
|
||||
#define __KVS_INC_LOG_H__
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
|
||||
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