style: remove bug info

This commit is contained in:
bookug 2017-07-17 22:58:13 +08:00
parent 72526284fd
commit 7b2792bbd4
5 changed files with 32 additions and 32 deletions

View File

@ -1077,13 +1077,13 @@ Database::unload()
{
//TODO: do we need to update the pre2num if update queries exist??
//or we just neglect this, that is ok because pre2num is just used to count
cout << "delete pre2num" << endl;
//cout << "delete pre2num" << endl;
delete[] this->pre2num;
this->pre2num = NULL;
cout << "delete entity buffer" << endl;
//cout << "delete entity buffer" << endl;
delete this->entity_buffer;
this->entity_buffer = NULL;
cout << "delete literal buffer" << endl;
//cout << "delete literal buffer" << endl;
delete this->literal_buffer;
this->literal_buffer = NULL;
@ -1091,10 +1091,10 @@ Database::unload()
//this->vstree->saveTree();
//delete this->vstree;
//this->vstree = NULL;
cout << "delete kvstore" << endl;
//cout << "delete kvstore" << endl;
delete this->kvstore;
this->kvstore = NULL;
cout << "delete stringindex" << endl;
//cout << "delete stringindex" << endl;
delete this->stringindex;
this->stringindex = NULL;

View File

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

View File

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

View File

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

View File

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