Skip to content

Commit

Permalink
PASTController: In reduce, don't invalidate. Temporary solution to is…
Browse files Browse the repository at this point in the history
…sue #162.
  • Loading branch information
jefft0 committed Nov 4, 2021
1 parent 3bc50fc commit 8a2284c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions r_exec/ast_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ void PASTController::reduce(View *v, _Fact *input) {
//std::cout<<Utils::RelativeTime(Now())<<" TPX"<<target_->get_reference(0)->code(MK_VAL_VALUE).asFloat()<<" reduced: "<<input->get_oid()<<" counter-evidence: "<<input->get_reference(0)->code(MK_VAL_VALUE).asFloat()<<std::endl;
kill();
tpx_->signal(v);
#if 0 // Set 0 to not invalidate. Temporary solution to https://github.com/IIIM-IS/replicode/issues/162
target_->invalidate();//std::cout<<Utils::RelativeTime(Now())<<" "<<target_->get_reference(0)->code(MK_VAL_VALUE).asFloat()<<"|"<<std::dec<<target_->get_oid()<<" invalidated"<<std::endl;
#endif
break;
case MATCH_FAILURE:
//std::cout<<Utils::RelativeTime(Now())<<" "<<std::hex<<this<<std::dec<<" target: "<<target_->get_reference(0)->code(MK_VAL_VALUE).asFloat()<<" stored: "<<input->get_oid()<<std::endl;
Expand Down

0 comments on commit 8a2284c

Please sign in to comment.