MDEV-24175 Windows - fix detection of whether file is on SSD

Fix detection. SSD is when storage does *not* incur a seek penalty.
This commit is contained in:
Vladislav Vaintroub 2022-02-17 22:55:08 +01:00
parent 6f4740fde7
commit fa557986ac

View File

@ -7340,7 +7340,7 @@ static bool is_drive_on_ssd(DWORD nr)
sizeof storage_query, &seek_penalty, sizeof seek_penalty, sizeof storage_query, &seek_penalty, sizeof seek_penalty,
&bytes_written, nullptr)) &bytes_written, nullptr))
{ {
on_ssd= seek_penalty.IncursSeekPenalty; on_ssd= !seek_penalty.IncursSeekPenalty;
} }
else else
{ {