Commit 44179179 authored by marko's avatar marko

branches/zip: fil_io(): Simplify an "else if" condition by reordering

conditions.
parent 1f69e099
...@@ -4317,11 +4317,11 @@ fil_io( ...@@ -4317,11 +4317,11 @@ fil_io(
#endif #endif
if (sync) { if (sync) {
mode = OS_AIO_SYNC; mode = OS_AIO_SYNC;
} else if (type == OS_FILE_READ && !is_log
&& ibuf_page(space_id, zip_size, block_offset)) {
mode = OS_AIO_IBUF;
} else if (is_log) { } else if (is_log) {
mode = OS_AIO_LOG; mode = OS_AIO_LOG;
} else if (type == OS_FILE_READ
&& ibuf_page(space_id, zip_size, block_offset)) {
mode = OS_AIO_IBUF;
} else { } else {
mode = OS_AIO_NORMAL; mode = OS_AIO_NORMAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment