Don't skip filesystem check on when KAIO is disabled

WSL the known Linux system where KAIO is not supported, can run these checks.
This commit is contained in:
Vishesh Yadav 2020-04-16 10:56:01 -07:00
parent 1901f49b97
commit 43f19bd463
1 changed files with 2 additions and 4 deletions

View File

@ -93,10 +93,8 @@ Net2FileSystem::Net2FileSystem(double ioTimeout, std::string fileSystemPath)
{
Net2AsyncFile::init();
#ifdef __linux__
if (FLOW_KNOBS->DISABLE_POSIX_KERNEL_AIO)
return;
AsyncFileKAIO::init( Reference<IEventFD>(N2::ASIOReactor::getEventFD()), ioTimeout );
if (!FLOW_KNOBS->DISABLE_POSIX_KERNEL_AIO)
AsyncFileKAIO::init( Reference<IEventFD>(N2::ASIOReactor::getEventFD()), ioTimeout );
if (fileSystemPath.empty()) {
checkFileSystem = false;