Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions contrib/pax_storage/src/cpp/comm/fast_io.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
*/

#include "fast_io.h"

#include <stdint.h>
#include <unistd.h> // for pread

// uring_likely may not be defined in older liburing versions
Expand All @@ -42,7 +42,7 @@ namespace pax
{

bool IOUringFastIO::available() {
static char support_io_uring = 0;
static int8_t support_io_uring = 0;

if (support_io_uring == 1) return true;
if (support_io_uring == -1) return false;
Expand Down Expand Up @@ -142,4 +142,4 @@ std::pair<int, int> SyncFastIO::read(int fd, std::vector<IORequest> &request, st
return {retcode, success_read};
}

} // namespace pax
} // namespace pax
Loading