Fixing failed delete file test
Fixing failed delete file test

Summary: FindObsoleteFiles() has to be called before PurgeObsoleteFiles() because FindObsoleteFiles() sets manifest_file_number, log_number and prev_log_number to valid values.

Test Plan: deletefile_test now works

Reviewers: dhruba, emayanke, kailiu

Reviewed By: kailiu

CC: leveldb

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

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