Almost there.
This commit is contained in:
+1
-1
@@ -85,7 +85,7 @@ void core::gnp::DistributedDualtreeDfs<DistributedProblemType>::ReduceScatter_(
|
||||
query_table_->local_table(), problem_->global());
|
||||
sub_problem.Init(sub_argument);
|
||||
sub_engine.Init(sub_problem);
|
||||
sub_engine.set_base_case_flag(false);
|
||||
sub_engine.set_base_case_flag(true);
|
||||
sub_engine.Compute(metric, query_results, false);
|
||||
printf("Unpruned query reference pairs: %d %d %d\n",
|
||||
sub_engine.unpruned_query_reference_pairs().size(),
|
||||
|
||||
@@ -269,7 +269,7 @@ class SubTable {
|
||||
}
|
||||
|
||||
~SubTable() {
|
||||
if(is_alias_ == false) {
|
||||
if(is_alias_ == false && table_ != NULL) {
|
||||
if(core::table::global_m_file_) {
|
||||
core::table::global_m_file_->DestroyPtr(table_);
|
||||
}
|
||||
@@ -338,6 +338,7 @@ class SubTable {
|
||||
TableType *table_in, TreeType *start_node_in,
|
||||
int max_num_levels_to_serialize_in) {
|
||||
table_ = table_in;
|
||||
is_alias_ = true;
|
||||
start_node_ = start_node_in;
|
||||
max_num_levels_to_serialize_ = max_num_levels_to_serialize_in;
|
||||
data_ = &table_in->data();
|
||||
|
||||
Reference in New Issue
Block a user