Skip to content

Commit

Permalink
move thread.interrupt call, get rid of prinln call
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Osheroff committed Apr 27, 2015
1 parent cfc3731 commit 3b6195b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/zendesk/maxwell/schema/SchemaPosition.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,10 @@ public void set(BinlogPosition p) {
public void setSync(BinlogPosition p) {
LOGGER.debug("syncing binlog position: " + p);
position.set(p);
thread.interrupt();
while ( true ) {
thread.interrupt();
BinlogPosition s = storedPosition.get();
if ( p.newerThan(s) ) {
System.out.println("sleeping, waiting... ");
try { Thread.sleep(50); } catch (InterruptedException e) { }
} else {
break;
Expand Down

0 comments on commit 3b6195b

Please sign in to comment.