Fix #169: a fileio bug

Fix async writes being reported as reads, which was a regression
introduced by commit e9b5f4b.
This commit is contained in:
Alexey Kopytov
2017-08-30 09:31:49 +03:00
parent d58e3f6aed
commit da8f4b96e2

View File

@ -1289,7 +1289,7 @@ int file_wait(int thread_id, long nreq)
}
sb_counter_inc(thread_id, SB_CNT_WRITE);
sb_counter_add(thread_id, SB_CNT_BYTES_READ, oper->len);
sb_counter_add(thread_id, SB_CNT_BYTES_WRITTEN, oper->len);
break;