[email protected] has uploaded this change for review. ( http://gerrit.cloudera.org:8080/14518
Change subject: [fs] Fix possible overflow when calculate max_open_files ...................................................................... [fs] Fix possible overflow when calculate max_open_files Originally, use `(rlimit*2)/5` to calculate its 40%, but when rlimit is very large, `rlimit*2` may overflow, so we should change it to `(rlimit/5)*2` In addition, 40% of any value of the `uint64_t` type must be less than `kint64max`, so there is no need to cap rlimit. Change-Id: I7f0426c303a1c16758c7274a308bc08d613d79e8 --- M src/kudu/fs/block_manager.cc 1 file changed, 4 insertions(+), 3 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/18/14518/1 -- To view, visit http://gerrit.cloudera.org:8080/14518 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I7f0426c303a1c16758c7274a308bc08d613d79e8 Gerrit-Change-Number: 14518 Gerrit-PatchSet: 1 Gerrit-Owner: Anonymous Coward <[email protected]>
