This commit is contained in:
Hongze Cheng 2021-10-12 11:41:27 +08:00
parent be63e61e16
commit 98ae04e7e6
4 changed files with 7 additions and 2 deletions

View File

@ -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 *);

View File

@ -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);
}
}

View File

@ -104,4 +104,6 @@ void metaClose(SMeta *pMeta) {
}
}
void metaDestroy(const char *path) { taosRemoveDir(path); }
int metaCommit(SMeta *meta) { return 0; }

View 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;
}