Fix replay binlog gc when not found db binlog (#31463)

Signed-off-by: Jack Drogon <jack.xsuperman@gmail.com>
This commit is contained in:
Jack Drogon
2024-02-28 11:33:11 +08:00
committed by yiguolei
parent 5824f8a4bc
commit 5bbe9f7b40

View File

@ -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);
}
}