Fix Autoroll logger
Fix Autoroll logger

Summary:
If auto roll logger can't create a new LOG file on roll (if, for example, somebody deletes rocksdb directory while rocksdb is running, khm), we'll try to call Logv on invalid address and get a SIGSEGV. This diff will fix the issue

Here's the paste of the stack trace: https://phabricator.fb.com/P8276386 (fb-only)

Test Plan: make check is fine, although not really testing error condition

Reviewers: haobo, ljin, yhchiang

Reviewed By: haobo

CC: leveldb

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

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