提交 98ae04e7 编写于 作者: H Hongze Cheng

more

上级 be63e61e
......@@ -34,7 +34,7 @@ typedef struct SMetaQueryOptions SMetaQueryOptions;
// SMeta operations
int metaCreate(const char *path);
int metaDestroy(const char *path);
void metaDestroy(const char *path);
SMeta *metaOpen(SMetaOptions *);
void metaClose(SMeta *);
int metaCreateTable(SMeta *, void *);
......
......@@ -48,7 +48,7 @@ void taosRemoveDir(char *dirname) {
taosRemoveDir(filename);
} else {
(void)remove(filename);
printf("file:%s is removed", filename);
printf("file:%s is removed\n", filename);
}
}
......
......@@ -104,4 +104,6 @@ void metaClose(SMeta *pMeta) {
}
}
void metaDestroy(const char *path) { taosRemoveDir(path); }
int metaCommit(SMeta *meta) { return 0; }
\ No newline at end of file
......@@ -9,4 +9,7 @@ TEST(MetaTest, meta_open_test) {
metaClose(meta);
std::cout << "Meta is closed!" << std::endl;
metaDestroy("meta");
std::cout << "Meta is destroyed!" << std::endl;
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册