delete debug output

This commit is contained in:
ZongyueQin 2017-08-04 08:28:00 +08:00
parent f069bd5bee
commit 917c0ef251
4 changed files with 0 additions and 24 deletions

View File

@ -603,20 +603,15 @@ ISTree::release(ISNode* _np) const
ISTree::~ISTree()
{
cout << "istree : " << endl;
cout << "delete stream" << endl;
delete this->stream; //maybe NULL
stream = NULL;
cout << "delete TSM" << endl;
delete TSM;
TSM = NULL;
#ifdef DEBUG_KVSTORE
printf("already empty the buffer, now to delete all nodes in tree!\n");
#endif
//recursively delete each Node
cout << "release" << endl;
release(root);
cout << "~istree done" << endl;
}
void

View File

@ -646,23 +646,17 @@ IVTree::AddIntoCache(TYPE_ENTITY_LITERAL_ID _id)
IVTree::~IVTree()
{
cout << "IVTree" << endl;
cout << "delete Vlist" << endl;
delete this->value_list;
value_list = NULL;
cout << "delete stream" << endl;
delete this->stream;//maybe NULL
this->stream = NULL;
cout << "delete TSM" << endl;
delete TSM;
TSM = NULL;
#ifdef DEBUG_KVSTORE
printf("already empty the buffer, now to delete all nodes in tree!\n");
#endif
//recursively delete each Node
cout << "release" << endl;
release(root);
cout << "~IVTree done" << endl;
}
void

View File

@ -59,33 +59,24 @@ KVstore::flush()
void
KVstore::release()
{
cout << "delete entity2id" << endl;
delete this->entity2id;
this->entity2id = NULL;
cout << "delete id2eneity" << endl;
delete this->id2entity;
this->id2entity = NULL;
cout << "delete literal2id" << endl;
delete this->literal2id;
this->literal2id = NULL;
cout << "delete id2leteral" << endl;
delete this->id2literal;
this->id2literal = NULL;
cout << "delete p2id" << endl;
delete this->predicate2id;
this->predicate2id = NULL;
cout << "delte id2p" << endl;
delete this->id2predicate;
this->id2predicate = NULL;
cout << "delete s2v" << endl;
delete this->subID2values;
this->subID2values = NULL;
cout << "delete p2v" << endl;
delete this->preID2values;
this->preID2values = NULL;
cout << "delete o2v" << endl;
delete this->objID2values;
this->objID2values = NULL;
}

View File

@ -454,17 +454,13 @@ SITree::release(SINode* _np) const
SITree::~SITree()
{
cout << "SITree" << endl;
cout << "delete TSM" << endl;
delete TSM;
TSM = NULL;
#ifdef DEBUG_KVSTORE
printf("already empty the buffer, now to delete all nodes in tree!\n");
#endif
cout << "release" << endl;
//recursively delete each SINode
release(root);
cout << "~SITree done" << endl;
}
void