Skip to content

Commit

Permalink
fs-randomfail: "write" probability was reversed.
Browse files Browse the repository at this point in the history
0 meant 100% while 100 meant 0%
  • Loading branch information
sirainen committed Oct 31, 2016
1 parent 955f324 commit ba1b959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-fs/fs-randomfail.c
Expand Up @@ -364,7 +364,7 @@ static int fs_randomfail_write_stream_finish(struct fs_file *_file, bool success
fs_write_stream_abort_parent(_file, &file->super_output);
return -1;
}
if (!fs_random_fail(_file->fs, 1, FS_OP_WRITE)) {
if (fs_random_fail(_file->fs, 1, FS_OP_WRITE)) {
fs_write_stream_abort_error(_file->parent, &file->super_output, RANDOMFAIL_ERROR);
return -1;
}
Expand Down

0 comments on commit ba1b959

Please sign in to comment.