Skip to content

Commit fa55798

Browse files
committed
MDEV-24175 Windows - fix detection of whether file is on SSD
Fix detection. SSD is when storage does *not* incur a seek penalty.
1 parent 6f4740f commit fa55798

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/innobase/os/os0file.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7340,7 +7340,7 @@ static bool is_drive_on_ssd(DWORD nr)
73407340
sizeof storage_query, &seek_penalty, sizeof seek_penalty,
73417341
&bytes_written, nullptr))
73427342
{
7343-
on_ssd= seek_penalty.IncursSeekPenalty;
7343+
on_ssd= !seek_penalty.IncursSeekPenalty;
73447344
}
73457345
else
73467346
{

0 commit comments

Comments
 (0)