Adar Dembo has submitted this change and it was merged. ( 
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`

Change-Id: I7f0426c303a1c16758c7274a308bc08d613d79e8
Reviewed-on: http://gerrit.cloudera.org:8080/14518
Reviewed-by: Adar Dembo <[email protected]>
Tested-by: Adar Dembo <[email protected]>
---
M src/kudu/fs/block_manager.cc
1 file changed, 7 insertions(+), 3 deletions(-)

Approvals:
  Adar Dembo: Looks good to me, approved; Verified

--
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: merged
Gerrit-Change-Id: I7f0426c303a1c16758c7274a308bc08d613d79e8
Gerrit-Change-Number: 14518
Gerrit-PatchSet: 5
Gerrit-Owner: Anonymous Coward <[email protected]>
Gerrit-Reviewer: Adar Dembo <[email protected]>
Gerrit-Reviewer: Anonymous Coward <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)

Reply via email to