提交 ab22af1d 编写于 作者: H Hongze Cheng

refactor

上级 0af316ce
......@@ -21,8 +21,6 @@ extern "C" {
#include <stdint.h>
#define KVSTORE_FILE_VERSION ((uint32_t)0)
typedef int (*iterFunc)(void *, void *cont, int contLen);
typedef void (*afterFunc)(void *);
......@@ -48,6 +46,7 @@ typedef struct {
} SKVStore;
#define KVSTORE_MAGIC(s) (s)->info.magic
#define KVSTORE_FILE_VERSION ((uint32_t)0)
int tdCreateKVStore(char *fname);
int tdDestroyKVStore(char *fname);
......
......@@ -17,11 +17,6 @@
#define TAOS_RANDOM_FILE_FAIL_TEST
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "os.h"
#include "hash.h"
#include "taoserror.h"
......@@ -33,7 +28,6 @@
#define TD_KVSTORE_HEADER_SIZE 512
#define TD_KVSTORE_MAJOR_VERSION 1
#define TD_KVSTORE_MAINOR_VERSION 0
#define TD_KVSTORE_SNAP_SUFFIX ".snap"
#define TD_KVSTORE_NEW_SUFFIX ".new"
#define TD_KVSTORE_INIT_MAGIC 0xFFFFFFFF
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册