Fix replay binlog gc when not found db binlog (#31463)
Signed-off-by: Jack Drogon <jack.xsuperman@gmail.com>
This commit is contained in:
@ -397,6 +397,10 @@ public class BinlogManager {
|
||||
for (BinlogTombstone tombstone : binlogGcInfo.getTombstones()) {
|
||||
long dbId = tombstone.getDbId();
|
||||
DBBinlog dbBinlog = gcDbBinlogMap.get(dbId);
|
||||
if (dbBinlog == null) {
|
||||
LOG.warn("dbBinlog not found. dbId: {}", dbId);
|
||||
continue;
|
||||
}
|
||||
dbBinlog.replayGc(tombstone);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user