This commit is contained in:
Mikael Vidstedt 2019-07-29 09:59:04 -07:00
commit 895db11053
190 changed files with 4646 additions and 181 deletions

View file

@ -1771,7 +1771,9 @@ bool FileMapInfo::initialize(bool is_static) {
}
init_from_file(_fd, is_static);
if (!validate_header(is_static)) {
// UseSharedSpaces could be disabled if the checking of some of the header fields in
// init_from_file has failed.
if (!UseSharedSpaces || !validate_header(is_static)) {
return false;
}
return true;