mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
fix bug of repeat log manager
This commit is contained in:
@@ -43,7 +43,7 @@ public class FailbackLogPositionManager extends AbstractLogPositionManager {
|
||||
}
|
||||
|
||||
if (!secondary.isStart()) {
|
||||
primary.start();
|
||||
secondary.start();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -40,8 +40,13 @@ public class MixedLogPositionManager extends AbstractLogPositionManager {
|
||||
public void start() {
|
||||
super.start();
|
||||
|
||||
memoryLogPositionManager.start();
|
||||
zooKeeperLogPositionManager.start();
|
||||
if (!memoryLogPositionManager.isStart()) {
|
||||
memoryLogPositionManager.start();
|
||||
}
|
||||
|
||||
if (!zooKeeperLogPositionManager.isStart()) {
|
||||
zooKeeperLogPositionManager.start();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user