mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
Merge pull request #293 from MarkLinHz/master
fix bug of repeat log manager
This commit is contained in:
@@ -42,7 +42,7 @@ public class FailbackLogPositionManager extends AbstractLogPositionManager {
|
||||
}
|
||||
|
||||
if (!secondary.isStart()) {
|
||||
primary.start();
|
||||
secondary.start();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -38,8 +38,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