MDEV-35657: Add work-arounds for clang 11

This commit is contained in:
Marko Mäkelä 2024-12-19 14:18:55 +02:00
parent e5c4c0842d
commit f2ffcd949b
2 changed files with 2 additions and 0 deletions

View file

@ -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;

View file

@ -3648,6 +3648,7 @@ next_file:
return(-1);
}
MSAN_STAT_WORKAROUND(&statinfo);
info->size = statinfo.st_size;
if (S_ISDIR(statinfo.st_mode)) {