Skip to content

Commit 7a12174

Browse files
committed
Fix buf in cfs_compression_ratio
1 parent 1cccc78 commit 7a12174

File tree

1 file changed

+1
-1
lines changed
  • src/backend/storage/file

1 file changed

+1
-1
lines changed

src/backend/storage/file/cfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ Datum cfs_compression_ratio(PG_FUNCTION_ARGS)
957957
} else {
958958
sprintf(map_path, "%s.%u.cfm", path, i);
959959
}
960-
md = open(map_path, O_RDONLY|PG_BINARY, 0);
960+
md = open(map_path, O_RDWR|PG_BINARY, 0);
961961
if (md < 0) {
962962
break;
963963
}

0 commit comments

Comments
 (0)