Skip to content

Commit

Permalink
move log statement about re-saving to proper place
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Osheroff committed Sep 1, 2015
1 parent cc7a89e commit ab8c427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/zendesk/maxwell/schema/SchemaStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -217,14 +217,14 @@ private void restoreFrom(BinlogPosition targetPosition)
// old versions of Maxwell had a bug where they set every server_id to 1.
// try to upgrade.

LOGGER.info("found schema with server_id == 1, re-saving...");
schemaRS = findSchema(targetPosition, 1L);

if ( schemaRS == null )
throw new SchemaSyncError("Could not find schema for "
+ targetPosition.getFile() + ":"
+ targetPosition.getOffset());

LOGGER.info("found schema with server_id == 1, re-saving...");
shouldResave = true;
}

Expand Down

0 comments on commit ab8c427

Please sign in to comment.