style: remove bug info
This commit is contained in:
parent
72526284fd
commit
7b2792bbd4
|
@ -1077,13 +1077,13 @@ Database::unload()
|
||||||
{
|
{
|
||||||
//TODO: do we need to update the pre2num if update queries exist??
|
//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
|
//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;
|
delete[] this->pre2num;
|
||||||
this->pre2num = NULL;
|
this->pre2num = NULL;
|
||||||
cout << "delete entity buffer" << endl;
|
//cout << "delete entity buffer" << endl;
|
||||||
delete this->entity_buffer;
|
delete this->entity_buffer;
|
||||||
this->entity_buffer = NULL;
|
this->entity_buffer = NULL;
|
||||||
cout << "delete literal buffer" << endl;
|
//cout << "delete literal buffer" << endl;
|
||||||
delete this->literal_buffer;
|
delete this->literal_buffer;
|
||||||
this->literal_buffer = NULL;
|
this->literal_buffer = NULL;
|
||||||
|
|
||||||
|
@ -1091,10 +1091,10 @@ Database::unload()
|
||||||
//this->vstree->saveTree();
|
//this->vstree->saveTree();
|
||||||
//delete this->vstree;
|
//delete this->vstree;
|
||||||
//this->vstree = NULL;
|
//this->vstree = NULL;
|
||||||
cout << "delete kvstore" << endl;
|
//cout << "delete kvstore" << endl;
|
||||||
delete this->kvstore;
|
delete this->kvstore;
|
||||||
this->kvstore = NULL;
|
this->kvstore = NULL;
|
||||||
cout << "delete stringindex" << endl;
|
//cout << "delete stringindex" << endl;
|
||||||
delete this->stringindex;
|
delete this->stringindex;
|
||||||
this->stringindex = NULL;
|
this->stringindex = NULL;
|
||||||
|
|
||||||
|
|
|
@ -603,20 +603,20 @@ ISTree::release(ISNode* _np) const
|
||||||
|
|
||||||
ISTree::~ISTree()
|
ISTree::~ISTree()
|
||||||
{
|
{
|
||||||
cout << "istree : " << endl;
|
//cout << "istree : " << endl;
|
||||||
cout << "delete stream" << endl;
|
//cout << "delete stream" << endl;
|
||||||
delete this->stream; //maybe NULL
|
delete this->stream; //maybe NULL
|
||||||
stream = NULL;
|
stream = NULL;
|
||||||
cout << "delete TSM" << endl;
|
//cout << "delete TSM" << endl;
|
||||||
delete TSM;
|
delete TSM;
|
||||||
TSM = NULL;
|
TSM = NULL;
|
||||||
#ifdef DEBUG_KVSTORE
|
#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
|
#endif
|
||||||
//recursively delete each Node
|
//recursively delete each Node
|
||||||
cout << "release" << endl;
|
//cout << "release" << endl;
|
||||||
release(root);
|
release(root);
|
||||||
cout << "~istree done" << endl;
|
//cout << "~istree done" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -646,23 +646,23 @@ IVTree::AddIntoCache(TYPE_ENTITY_LITERAL_ID _id)
|
||||||
|
|
||||||
IVTree::~IVTree()
|
IVTree::~IVTree()
|
||||||
{
|
{
|
||||||
cout << "IVTree" << endl;
|
//cout << "IVTree" << endl;
|
||||||
cout << "delete Vlist" << endl;
|
//cout << "delete Vlist" << endl;
|
||||||
delete this->value_list;
|
delete this->value_list;
|
||||||
value_list = NULL;
|
value_list = NULL;
|
||||||
cout << "delete stream" << endl;
|
//cout << "delete stream" << endl;
|
||||||
delete this->stream;//maybe NULL
|
delete this->stream;//maybe NULL
|
||||||
this->stream = NULL;
|
this->stream = NULL;
|
||||||
cout << "delete TSM" << endl;
|
//cout << "delete TSM" << endl;
|
||||||
delete TSM;
|
delete TSM;
|
||||||
TSM = NULL;
|
TSM = NULL;
|
||||||
#ifdef DEBUG_KVSTORE
|
#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
|
#endif
|
||||||
//recursively delete each Node
|
//recursively delete each Node
|
||||||
cout << "release" << endl;
|
//cout << "release" << endl;
|
||||||
release(root);
|
release(root);
|
||||||
cout << "~IVTree done" << endl;
|
//cout << "~IVTree done" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -59,33 +59,33 @@ KVstore::flush()
|
||||||
void
|
void
|
||||||
KVstore::release()
|
KVstore::release()
|
||||||
{
|
{
|
||||||
cout << "delete entity2id" << endl;
|
//cout << "delete entity2id" << endl;
|
||||||
delete this->entity2id;
|
delete this->entity2id;
|
||||||
this->entity2id = NULL;
|
this->entity2id = NULL;
|
||||||
cout << "delete id2eneity" << endl;
|
//cout << "delete id2eneity" << endl;
|
||||||
delete this->id2entity;
|
delete this->id2entity;
|
||||||
this->id2entity = NULL;
|
this->id2entity = NULL;
|
||||||
cout << "delete literal2id" << endl;
|
//cout << "delete literal2id" << endl;
|
||||||
delete this->literal2id;
|
delete this->literal2id;
|
||||||
this->literal2id = NULL;
|
this->literal2id = NULL;
|
||||||
cout << "delete id2leteral" << endl;
|
//cout << "delete id2leteral" << endl;
|
||||||
delete this->id2literal;
|
delete this->id2literal;
|
||||||
this->id2literal = NULL;
|
this->id2literal = NULL;
|
||||||
|
|
||||||
cout << "delete p2id" << endl;
|
//cout << "delete p2id" << endl;
|
||||||
delete this->predicate2id;
|
delete this->predicate2id;
|
||||||
this->predicate2id = NULL;
|
this->predicate2id = NULL;
|
||||||
cout << "delte id2p" << endl;
|
//cout << "delte id2p" << endl;
|
||||||
delete this->id2predicate;
|
delete this->id2predicate;
|
||||||
this->id2predicate = NULL;
|
this->id2predicate = NULL;
|
||||||
|
|
||||||
cout << "delete s2v" << endl;
|
//cout << "delete s2v" << endl;
|
||||||
delete this->subID2values;
|
delete this->subID2values;
|
||||||
this->subID2values = NULL;
|
this->subID2values = NULL;
|
||||||
cout << "delete p2v" << endl;
|
//cout << "delete p2v" << endl;
|
||||||
delete this->preID2values;
|
delete this->preID2values;
|
||||||
this->preID2values = NULL;
|
this->preID2values = NULL;
|
||||||
cout << "delete o2v" << endl;
|
//cout << "delete o2v" << endl;
|
||||||
delete this->objID2values;
|
delete this->objID2values;
|
||||||
this->objID2values = NULL;
|
this->objID2values = NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -454,17 +454,17 @@ SITree::release(SINode* _np) const
|
||||||
|
|
||||||
SITree::~SITree()
|
SITree::~SITree()
|
||||||
{
|
{
|
||||||
cout << "SITree" << endl;
|
//cout << "SITree" << endl;
|
||||||
cout << "delete TSM" << endl;
|
//cout << "delete TSM" << endl;
|
||||||
delete TSM;
|
delete TSM;
|
||||||
TSM = NULL;
|
TSM = NULL;
|
||||||
#ifdef DEBUG_KVSTORE
|
#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
|
#endif
|
||||||
cout << "release" << endl;
|
//cout << "release" << endl;
|
||||||
//recursively delete each SINode
|
//recursively delete each SINode
|
||||||
release(root);
|
release(root);
|
||||||
cout << "~SITree done" << endl;
|
//cout << "~SITree done" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue