Ignore corrupted web pages loaded from database.
GitOrigin-RevId: 1233ad086176910d3fe6f6cf621d3cbfc36775bb
This commit is contained in:
parent
0b6c1d226f
commit
b282853c97
@ -1417,10 +1417,12 @@ void WebPagesManager::on_load_web_page_from_database(WebPageId web_page_id, stri
|
|||||||
auto result = make_unique<WebPage>();
|
auto result = make_unique<WebPage>();
|
||||||
auto status = log_event_parse(*result, value);
|
auto status = log_event_parse(*result, value);
|
||||||
if (status.is_error()) {
|
if (status.is_error()) {
|
||||||
LOG(FATAL) << status << ": " << format::as_hex_dump<4>(Slice(value));
|
LOG(ERROR) << "Failed to parse web page loaded from database: " << status
|
||||||
}
|
<< ", value = " << format::as_hex_dump<4>(Slice(value));
|
||||||
|
} else {
|
||||||
update_web_page(std::move(result), web_page_id, true, true);
|
update_web_page(std::move(result), web_page_id, true, true);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// web page has already been loaded from the server
|
// web page has already been loaded from the server
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user