Skip to content

Commit

Permalink
0003398: new sym_job table causes registration error on clients older
Browse files Browse the repository at this point in the history
than 3.8
  • Loading branch information
chenson42 committed Feb 1, 2018
1 parent bfcb7f2 commit d76ff4e
Showing 1 changed file with 5 additions and 3 deletions.
Expand Up @@ -235,15 +235,17 @@ public void extractConfigurationOnly(Node node, OutputStream out) {
TableConstants.SYM_TABLE_RELOAD_REQUEST, TableConstants.SYM_MONITOR_EVENT, TableConstants.SYM_CONSOLE_EVENT);
}

protected boolean filter(Node targetNode, String tableName) {

protected boolean filter(Node targetNode, String tableName) {
boolean pre37 = Version.isOlderThanVersion(targetNode.getSymmetricVersionParts(), Version.VERSION_3_7_0);
boolean pre38 = Version.isOlderThanVersion(targetNode.getSymmetricVersionParts(), Version.VERSION_3_8_0);
boolean pre3818 = Version.isOlderThanVersion(targetNode.getSymmetricVersionParts(), Version.VERSION_3_8_18);
boolean pre39 = Version.isOlderThanVersion(targetNode.getSymmetricVersionParts(), Version.VERSION_3_9_0);

tableName = tableName.toLowerCase();
boolean include = true;
if (pre37 && tableName.contains(TableConstants.SYM_EXTENSION)) {
if (pre39 && tableName.contains(TableConstants.SYM_JOB)) {
include = false;
} else if (pre37 && tableName.contains(TableConstants.SYM_EXTENSION)) {
include = false;
} else if (pre38 && (tableName.contains(TableConstants.SYM_MONITOR) ||
tableName.contains(TableConstants.SYM_NOTIFICATION))) {
Expand Down

0 comments on commit d76ff4e

Please sign in to comment.