Skip to content

Commit

Permalink
Add log message when enabling and disabling post cost aggregation
Browse files Browse the repository at this point in the history
  • Loading branch information
vogti committed Dec 7, 2021
1 parent dce9d23 commit 889eeed
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions dbms/src/main/java/org/polypheny/db/routing/RoutingManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,19 @@ public void restart( Config c ) {
PLAN_SELECTION_STRATEGY.withUi( routingGroup.getId(), 2 );

configManager.registerConfig( POST_COST_AGGREGATION_ACTIVE );
POST_COST_AGGREGATION_ACTIVE.addObserver( new ConfigListener() {
@Override
public void onConfigChange( Config c ) {
String status = c.getBoolean() ? "Enabled" : "Disabled";
log.warn( "{} post cost aggregation", status );
}


@Override
public void restart( Config c ) {

}
} );
POST_COST_AGGREGATION_ACTIVE.withUi( routingGroup.getId(), 3 );
}

Expand Down

0 comments on commit 889eeed

Please sign in to comment.