mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
MDEV-35657: Add work-arounds for clang 11
This commit is contained in:
parent
e5c4c0842d
commit
f2ffcd949b
2 changed files with 2 additions and 0 deletions
|
@ -187,6 +187,7 @@ xb_fil_cur_open(
|
|||
}
|
||||
#else
|
||||
err = fstat(cursor->file.m_file, &cursor->statinfo);
|
||||
MSAN_STAT_WORKAROUND(&cursor->statinfo);
|
||||
#endif
|
||||
if (max_file_size < (ulonglong)cursor->statinfo.st_size) {
|
||||
cursor->statinfo.st_size = (ulonglong)max_file_size;
|
||||
|
|
|
@ -3648,6 +3648,7 @@ next_file:
|
|||
return(-1);
|
||||
}
|
||||
|
||||
MSAN_STAT_WORKAROUND(&statinfo);
|
||||
info->size = statinfo.st_size;
|
||||
|
||||
if (S_ISDIR(statinfo.st_mode)) {
|
||||
|
|
Loading…
Reference in a new issue