Re-commit the correct part (WalDir) of the revision:
Re-commit the correct part (WalDir) of the revision:

Commit 6634844dba962b9a150646382f4d6531d1f2440b by sdong
Two small fixes in db_test

Summary:
Two fixes:
(1) WalDir to pick a directory under TmpDir to allow two tests running in parallel without impacting each other
(2) kBlockBasedTableWithWholeKeyHashIndex is disabled by mistake (I assume). Enable it.

Test Plan: ./db_test

Reviewers: yhchiang, ljin

Reviewed By: ljin

Subscribers: nkg-, igor, dhruba, haobo, leveldb

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

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