Commit fa557986 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

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

Fix detection. SSD is when storage does *not* incur a seek penalty.
parent 6f4740fd
...@@ -7340,7 +7340,7 @@ static bool is_drive_on_ssd(DWORD nr) ...@@ -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
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment