mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +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
|
#else
|
||||||
err = fstat(cursor->file.m_file, &cursor->statinfo);
|
err = fstat(cursor->file.m_file, &cursor->statinfo);
|
||||||
|
MSAN_STAT_WORKAROUND(&cursor->statinfo);
|
||||||
#endif
|
#endif
|
||||||
if (max_file_size < (ulonglong)cursor->statinfo.st_size) {
|
if (max_file_size < (ulonglong)cursor->statinfo.st_size) {
|
||||||
cursor->statinfo.st_size = (ulonglong)max_file_size;
|
cursor->statinfo.st_size = (ulonglong)max_file_size;
|
||||||
|
|
|
@ -3648,6 +3648,7 @@ next_file:
|
||||||
return(-1);
|
return(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MSAN_STAT_WORKAROUND(&statinfo);
|
||||||
info->size = statinfo.st_size;
|
info->size = statinfo.st_size;
|
||||||
|
|
||||||
if (S_ISDIR(statinfo.st_mode)) {
|
if (S_ISDIR(statinfo.st_mode)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue