From fa557986acaf8d55bbf03fd0ed076f95ef794d1c Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Thu, 17 Feb 2022 22:55:08 +0100 Subject: [PATCH] MDEV-24175 Windows - fix detection of whether file is on SSD Fix detection. SSD is when storage does *not* incur a seek penalty. --- storage/innobase/os/os0file.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/innobase/os/os0file.cc b/storage/innobase/os/os0file.cc index 25d7ac49bc4..5903fca86b6 100644 --- a/storage/innobase/os/os0file.cc +++ b/storage/innobase/os/os0file.cc @@ -7340,7 +7340,7 @@ static bool is_drive_on_ssd(DWORD nr) sizeof storage_query, &seek_penalty, sizeof seek_penalty, &bytes_written, nullptr)) { - on_ssd= seek_penalty.IncursSeekPenalty; + on_ssd= !seek_penalty.IncursSeekPenalty; } else {