fix coredump
This commit is contained in:
parent
45e229b80b
commit
3abb11ec95
@ -1272,12 +1272,17 @@ int ObArchiveStore::get_piece_paths_in_range(const int64_t start_scn, const int6
|
||||
}
|
||||
}
|
||||
|
||||
if (OB_SUCC(ret)) {
|
||||
if (OB_FAIL(ret)) {
|
||||
} else if (-1 == last_piece_idx) {
|
||||
ret = OB_ENTRY_NOT_EXIST;
|
||||
LOG_WARN("no enough log for restore", K(ret), K(last_piece_idx), K(end_scn));
|
||||
LOG_USER_ERROR(OB_ENTRY_NOT_EXIST, "No enough log for restore");
|
||||
} else {
|
||||
const ObTenantArchivePieceAttr &last_piece = piece_whole_info.his_frozen_pieces_.at(last_piece_idx);
|
||||
if (last_piece.checkpoint_scn_ < end_scn) {
|
||||
ret = OB_ENTRY_EXIST;
|
||||
ret = OB_ENTRY_NOT_EXIST;
|
||||
LOG_WARN("no enough log for restore", K(ret), K(last_piece), K(end_scn));
|
||||
LOG_USER_ERROR(OB_ENTRY_EXIST, "No enough log for restore");
|
||||
LOG_USER_ERROR(OB_ENTRY_NOT_EXIST, "No enough log for restore");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user