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:
parent
6f4740fde7
commit
fa557986ac
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user