This commit is contained in:
Hongze Cheng 2021-10-15 16:25:09 +08:00
parent 841eae909a
commit d0e645e4f5
2 changed files with 3 additions and 16 deletions

View File

@ -232,17 +232,4 @@ void metaTableOptsDestroy(STableOpts *pTableOpts) {
pTableOpts->type = META_INIT_TABLE; pTableOpts->type = META_INIT_TABLE;
} }
#if 0
/* -------------------- Structures -------------------- */
static STable * metaTableNew(tb_uid_t uid, const char *name, int32_t sver);
void metaDestroy(const char *path) { taosRemoveDir(path); } void metaDestroy(const char *path) { taosRemoveDir(path); }
int metaCommit(SMeta *meta) { return 0; }
void metaTableOptsInit(STableOpts *pTableOpts, int8_t type, const char *name, const STSchema *pSchema) {
pTableOpts->type = type;
pTableOpts->name = strdup(name);
pTableOpts->pSchema = tdDupSchema(pSchema);
}
#endif

View File

@ -39,7 +39,7 @@ TEST(MetaTest, meta_create_1m_normal_tables_test) {
metaClose(meta); metaClose(meta);
std::cout << "Meta is closed!" << std::endl; std::cout << "Meta is closed!" << std::endl;
// // Destroy Meta // Destroy Meta
// metaDestroy("meta"); metaDestroy("meta");
// std::cout << "Meta is destroyed!" << std::endl; std::cout << "Meta is destroyed!" << std::endl;
} }