added destructor to diskTreeComponent (fixes file handle / memory leak)
git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/yrl/labs/pnuts/code/logstore@954 8dad8b1f-cf64-0410-95b6-bcf113ffbcfe
This commit is contained in:
parent
7a1b2f9687
commit
00d6cd2440
2 changed files with 5 additions and 1 deletions
|
@ -357,6 +357,10 @@ diskTreeComponent::internalNodes::internalNodes(int xid, recordid root, recordid
|
||||||
datapage_alloc(new RegionAllocator(xid, datapage_state))
|
datapage_alloc(new RegionAllocator(xid, datapage_state))
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
diskTreeComponent::internalNodes::~internalNodes() {
|
||||||
|
delete internal_node_alloc;
|
||||||
|
delete datapage_alloc;
|
||||||
|
}
|
||||||
|
|
||||||
/* adding pages:
|
/* adding pages:
|
||||||
|
|
||||||
|
|
|
@ -81,7 +81,7 @@ class diskTreeComponent {
|
||||||
|
|
||||||
internalNodes(int xid, pageid_t internal_region_size, pageid_t datapage_region_size, pageid_t datapage_size);
|
internalNodes(int xid, pageid_t internal_region_size, pageid_t datapage_region_size, pageid_t datapage_size);
|
||||||
internalNodes(int xid, recordid root, recordid internal_node_state, recordid datapage_state);
|
internalNodes(int xid, recordid root, recordid internal_node_state, recordid datapage_state);
|
||||||
|
~internalNodes();
|
||||||
void print_tree(int xid);
|
void print_tree(int xid);
|
||||||
|
|
||||||
//returns the id of the data page that could contain the given key
|
//returns the id of the data page that could contain the given key
|
||||||
|
|
Loading…
Reference in a new issue