more
This commit is contained in:
parent
be63e61e16
commit
98ae04e7e6
|
@ -34,7 +34,7 @@ typedef struct SMetaQueryOptions SMetaQueryOptions;
|
||||||
|
|
||||||
// SMeta operations
|
// SMeta operations
|
||||||
int metaCreate(const char *path);
|
int metaCreate(const char *path);
|
||||||
int metaDestroy(const char *path);
|
void metaDestroy(const char *path);
|
||||||
SMeta *metaOpen(SMetaOptions *);
|
SMeta *metaOpen(SMetaOptions *);
|
||||||
void metaClose(SMeta *);
|
void metaClose(SMeta *);
|
||||||
int metaCreateTable(SMeta *, void *);
|
int metaCreateTable(SMeta *, void *);
|
||||||
|
|
|
@ -48,7 +48,7 @@ void taosRemoveDir(char *dirname) {
|
||||||
taosRemoveDir(filename);
|
taosRemoveDir(filename);
|
||||||
} else {
|
} else {
|
||||||
(void)remove(filename);
|
(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; }
|
int metaCommit(SMeta *meta) { return 0; }
|
|
@ -9,4 +9,7 @@ TEST(MetaTest, meta_open_test) {
|
||||||
|
|
||||||
metaClose(meta);
|
metaClose(meta);
|
||||||
std::cout << "Meta is closed!" << std::endl;
|
std::cout << "Meta is closed!" << std::endl;
|
||||||
|
|
||||||
|
metaDestroy("meta");
|
||||||
|
std::cout << "Meta is destroyed!" << std::endl;
|
||||||
}
|
}
|
Loading…
Reference in New Issue