Skip to content

Commit 2c705ff

Browse files
committed
fix remote fio_get_crc32
1 parent 401aa42 commit 2c705ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3383,7 +3383,7 @@ fio_communicate(int in, int out)
33833383
break;
33843384
case FIO_GET_CRC32:
33853385
/* calculate crc32 for a file */
3386-
if (hdr.arg == 1)
3386+
if ((hdr.arg & 1))
33873387
crc = pgFileGetCRCgz(buf, true, (hdr.arg & 2) != 0);
33883388
else
33893389
crc = pgFileGetCRC(buf, true, (hdr.arg & 2) != 0);

0 commit comments

Comments
 (0)