Fix the bounds check for the --readwritepercent option
Fix the bounds check for the --readwritepercent option

Summary:
see above

Task ID: #

Blame Rev:

Test Plan:
run db_bench with invalid value for option

Revert Plan:

Database Impact:

Memcache Impact:

Other Notes:

EImportant:

- begin *PUBLIC* platform impact section -
Bugzilla: #
- end platform impact -

Reviewers: dhruba

Reviewed By: dhruba

CC: heyongqiang

Differential Revision: https://reviews.facebook.net/D5823

tschottdorf/rocksdb,flabby/rocksdb,wat-ze-hex/rocksdb,OverlordQ/rocksdb,hobinyoon/rocksdb,OverlordQ/rocksdb,OverlordQ/rocksdb,wlqGit/rocksdb,kaschaeffer/rocksdb,wenduo/rocksdb,IMCG/RcoksDB,jalexanderqed/rocksdb,bbiao/rocksdb,vashstorm/rocksdb,mbarbon/rocksdb,amyvmiwei/rocksdb,vmx/rocksdb,sorphi/rocksdb,jalexanderqed/rocksdb,skunkwerks/rocksdb,sorphi/rocksdb,vmx/rocksdb,ylong/rocksdb,caijieming-baidu/rocksdb,ryneli/rocksdb,NickCis/rocksdb,flabby/rocksdb,temicai/rocksdb,norton/rocksdb,wskplho/rocksdb,geraldoandradee/rocksdb,Andymic/rocksdb,makelivedotnet/rocksdb,tsheasha/rocksdb,JohnPJenkins/rocksdb,amyvmiwei/rocksdb,mbarbon/rocksdb,luckywhu/rocksdb,RyanTech/rocksdb,SunguckLee/RocksDB,siddhartharay007/rocksdb,wskplho/rocksdb,lgscofield/rocksdb,caijieming-baidu/rocksdb,fengshao0907/rocksdb,dkorolev/rocksdb,JackLian/rocksdb,geraldoandradee/rocksdb,RyanTech/rocksdb,tschottdorf/rocksdb,sorphi/rocksdb,wat-ze-hex/rocksdb,virtdb/rocksdb,JackLian/rocksdb,vmx/rocksdb,wat-ze-hex/rocksdb,makelivedotnet/rocksdb,hobinyoon/rocksdb,norton/rocksdb,vashstorm/rocksdb,siddhartharay007/rocksdb,msb-at-yahoo/rocksdb,JohnPJenkins/rocksdb,Applied-Duality/rocksdb,SunguckLee/RocksDB,IMCG/RcoksDB,norton/rocksdb,Vaisman/rocksdb,luckywhu/rocksdb,caijieming-baidu/rocksdb,zhangpng/rocksdb,caijieming-baidu/rocksdb,NickCis/rocksdb,Applied-Duality/rocksdb,ylong/rocksdb,wskplho/rocksdb,JoeWoo/rocksdb,alihalabyah/rocksdb,luckywhu/rocksdb,rDSN-Projects/rocksdb.replicated,wat-ze-hex/rocksdb,fengshao0907/rocksdb,lgscofield/rocksdb,Vaisman/rocksdb,msb-at-yahoo/rocksdb,amyvmiwei/rocksdb,luckywhu/rocksdb,vashstorm/rocksdb,Andymic/rocksdb,norton/rocksdb,vashstorm/rocksdb,temicai/rocksdb,fengshao0907/rocksdb,bbiao/rocksdb,ylong/rocksdb,tizzybec/rocksdb,wskplho/rocksdb,skunkwerks/rocksdb,vmx/rocksdb,caijieming-baidu/rocksdb,luckywhu/rocksdb,rDSN-Projects/rocksdb.replicated,anagav/rocksdb,wlqGit/rocksdb,msb-at-yahoo/rocksdb,wskplho/rocksdb,tsheasha/rocksdb,tsheasha/rocksdb,JohnPJenkins/rocksdb,ryneli/rocksdb,biddyweb/rocksdb,ryneli/rocksdb,amyvmiwei/rocksdb,tizzybec/rocksdb,JohnPJenkins/rocksdb,temicai/rocksdb,hobinyoon/rocksdb,virtdb/rocksdb,sorphi/rocksdb,ylong/rocksdb,wskplho/rocksdb,NickCis/rocksdb,dkorolev/rocksdb,virtdb/rocksdb,Applied-Duality/rocksdb,amyvmiwei/rocksdb,IMCG/RcoksDB,rDSN-Projects/rocksdb.replicated,Applied-Duality/rocksdb,lgscofield/rocksdb,wlqGit/rocksdb,RyanTech/rocksdb,lgscofield/rocksdb,norton/rocksdb,lgscofield/rocksdb,flabby/rocksdb,alihalabyah/rocksdb,Applied-Duality/rocksdb,jalexanderqed/rocksdb,ylong/rocksdb,dkorolev/rocksdb,bbiao/rocksdb,wenduo/rocksdb,wat-ze-hex/rocksdb,hobinyoon/rocksdb,makelivedotnet/rocksdb,fengshao0907/rocksdb,bbiao/rocksdb,ryneli/rocksdb,fengshao0907/rocksdb,skunkwerks/rocksdb,rDSN-Projects/rocksdb.replicated,JackLian/rocksdb,msb-at-yahoo/rocksdb,ryneli/rocksdb,alihalabyah/rocksdb,anagav/rocksdb,kaschaeffer/rocksdb,biddyweb/rocksdb,vmx/rocksdb,Andymic/rocksdb,facebook/rocksdb,Andymic/rocksdb,wlqGit/rocksdb,rDSN-Projects/rocksdb.replicated,Vaisman/rocksdb,bbiao/rocksdb,siddhartharay007/rocksdb,tsheasha/rocksdb,mbarbon/rocksdb,Andymic/rocksdb,tizzybec/rocksdb,RyanTech/rocksdb,Andymic/rocksdb,JackLian/rocksdb,bbiao/rocksdb,rDSN-Projects/rocksdb.replicated,zhangpng/rocksdb,SunguckLee/RocksDB,vashstorm/rocksdb,lgscofield/rocksdb,alihalabyah/rocksdb,jalexanderqed/rocksdb,hobinyoon/rocksdb,vmx/rocksdb,jalexanderqed/rocksdb,alihalabyah/rocksdb,facebook/rocksdb,amyvmiwei/rocksdb,JackLian/rocksdb,flabby/rocksdb,zhangpng/rocksdb,IMCG/RcoksDB,zhangpng/rocksdb,tsheasha/rocksdb,tschottdorf/rocksdb,Vaisman/rocksdb,skunkwerks/rocksdb,RyanTech/rocksdb,flabby/rocksdb,kaschaeffer/rocksdb,zhangpng/rocksdb,facebook/rocksdb,dkorolev/rocksdb,flabby/rocksdb,rDSN-Projects/rocksdb.replicated,SunguckLee/RocksDB,facebook/rocksdb,anagav/rocksdb,Applied-Duality/rocksdb,skunkwerks/rocksdb,geraldoandradee/rocksdb,anagav/rocksdb,kaschaeffer/rocksdb,siddhartharay007/rocksdb,tizzybec/rocksdb,biddyweb/rocksdb,tizzybec/rocksdb,hobinyoon/rocksdb,mbarbon/rocksdb,msb-at-yahoo/rocksdb,kaschaeffer/rocksdb,OverlordQ/rocksdb,bbiao/rocksdb,msb-at-yahoo/rocksdb,biddyweb/rocksdb,JoeWoo/rocksdb,facebook/rocksdb,SunguckLee/RocksDB,wenduo/rocksdb,RyanTech/rocksdb,Vaisman/rocksdb,wenduo/rocksdb,Vaisman/rocksdb,facebook/rocksdb,lgscofield/rocksdb,jalexanderqed/rocksdb,mbarbon/rocksdb,Applied-Duality/rocksdb,temicai/rocksdb,Andymic/rocksdb,JohnPJenkins/rocksdb,tsheasha/rocksdb,JoeWoo/rocksdb,tschottdorf/rocksdb,skunkwerks/rocksdb,sorphi/rocksdb,Andymic/rocksdb,makelivedotnet/rocksdb,facebook/rocksdb,NickCis/rocksdb,anagav/rocksdb,siddhartharay007/rocksdb,JoeWoo/rocksdb,caijieming-baidu/rocksdb,geraldoandradee/rocksdb,anagav/rocksdb,mbarbon/rocksdb,SunguckLee/RocksDB,wenduo/rocksdb,kaschaeffer/rocksdb,NickCis/rocksdb,wenduo/rocksdb,norton/rocksdb,wat-ze-hex/rocksdb,Vaisman/rocksdb,tizzybec/rocksdb,wat-ze-hex/rocksdb,virtdb/rocksdb,OverlordQ/rocksdb,dkorolev/rocksdb,temicai/rocksdb,dkorolev/rocksdb,OverlordQ/rocksdb,norton/rocksdb,hobinyoon/rocksdb,virtdb/rocksdb,ylong/rocksdb,wlqGit/rocksdb,NickCis/rocksdb,geraldoandradee/rocksdb,luckywhu/rocksdb,wlqGit/rocksdb,geraldoandradee/rocksdb,alihalabyah/rocksdb,JackLian/rocksdb,SunguckLee/RocksDB,ryneli/rocksdb,amyvmiwei/rocksdb,vmx/rocksdb,vashstorm/rocksdb,zhangpng/rocksdb,siddhartharay007/rocksdb,fengshao0907/rocksdb,ylong/rocksdb,sorphi/rocksdb,biddyweb/rocksdb,norton/rocksdb,facebook/rocksdb,JoeWoo/rocksdb,IMCG/RcoksDB,tschottdorf/rocksdb,vashstorm/rocksdb,temicai/rocksdb,wat-ze-hex/rocksdb,makelivedotnet/rocksdb,wenduo/rocksdb,biddyweb/rocksdb,wlqGit/rocksdb,JoeWoo/rocksdb,sorphi/rocksdb,tsheasha/rocksdb,temicai/rocksdb,wenduo/rocksdb,flabby/rocksdb,skunkwerks/rocksdb,JohnPJenkins/rocksdb,anagav/rocksdb,zhangpng/rocksdb,mbarbon/rocksdb,SunguckLee/RocksDB,bbiao/rocksdb,caijieming-baidu/rocksdb,geraldoandradee/rocksdb,virtdb/rocksdb,JohnPJenkins/rocksdb,RyanTech/rocksdb,wskplho/rocksdb,tschottdorf/rocksdb,NickCis/rocksdb,vmx/rocksdb,makelivedotnet/rocksdb,JackLian/rocksdb,jalexanderqed/rocksdb,JoeWoo/rocksdb,IMCG/RcoksDB,luckywhu/rocksdb,tizzybec/rocksdb,OverlordQ/rocksdb,tsheasha/rocksdb,alihalabyah/rocksdb,makelivedotnet/rocksdb,siddhartharay007/rocksdb,ryneli/rocksdb,kaschaeffer/rocksdb,IMCG/RcoksDB,dkorolev/rocksdb,virtdb/rocksdb,fengshao0907/rocksdb,biddyweb/rocksdb,hobinyoon/rocksdb