folly::Singleton-based McrouterManager
folly::Singleton-based McrouterManager

Summary: Introduces a Singleton which keeps a map persistence_id => mcrouter_t*. Makes mcrouter instance not know if it's managed by McrouterManager.

Test Plan: unit tests

Reviewed By: pavlo@fb.com

Subscribers: trunkagent, alikhtarov, njormrod, folly-diffs@

FB internal diff: D1673274

Signature: t1:1673274:1415735863:c990a6a526f9525c68cc23892d690a9b3cb94ace

raphaelamorim/folly,PPC64/folly,SeanRBurton/folly,sakishum/folly,reddit/folly,mqeizi/folly,guker/folly,SeanRBurton/folly,bobegir/folly,CJstar/folly,lifei/folly,bowlofstew/folly,stonegithubs/folly,shaobz/folly,fw1121/folly,project-zerus/folly,shaobz/folly,shaobz/folly,SammyK/folly,loversInJapan/folly,juniway/folly,bowlofstew/folly,Eagle-X/folly,bsampath/folly,brunomorishita/folly,SeanRBurton/folly,arg0/folly,lifei/folly,guker/folly,theiver9827/folly,cppfool/folly,clearlylin/folly,bobegir/folly,gavioto/folly,yangjin-unique/folly,raphaelamorim/folly,renyinew/folly,tempbottle/folly,doctaweeks/folly,cppfool/folly,SammyK/folly,zhiweicai/folly,clearlinux/folly,kernelim/folly,KSreeHarsha/folly,renyinew/folly,arg0/folly,KSreeHarsha/folly,renyinew/folly,floxard/folly,alexst07/folly,Orvid/folly,zhiweicai/folly,Eagle-X/folly,gaoyingie/folly,upsoft/folly,constantine001/folly,stonegithubs/folly,floxard/folly,xzmagic/folly,bowlofstew/folly,kernelim/folly,colemancda/folly,kernelim/folly,bobegir/folly,loversInJapan/folly,SeanRBurton/folly,bowlofstew/folly,rklabs/folly,sakishum/folly,project-zerus/folly,colemancda/folly,leolujuyi/folly,Hincoin/folly,SammyK/folly,reddit/folly,Hincoin/folly,PoisonBOx/folly,chjp2046/folly,kernelim/folly,romange/folly,chjp2046/folly,charsyam/folly,Hincoin/folly,yangjin-unique/folly,bikong2/folly,constantine001/folly,rklabs/folly,upsoft/folly,cole14/folly,juniway/folly,tomhughes/folly,charsyam/folly,gaoyingie/folly,clearlylin/folly,facebook/folly,lifei/folly,cppfool/folly,zhiweicai/folly,loverszhaokai/folly,loversInJapan/folly,xzmagic/folly,shaobz/folly,chjp2046/folly,theiver9827/folly,sonnyhu/folly,upsoft/folly,Eagle-X/folly,hongliangzhao/folly,alexst07/folly,wildinto/folly,clearlinux/folly,cole14/folly,romange/folly,doctaweeks/folly,KSreeHarsha/folly,loverszhaokai/folly,fw1121/folly,yangjin-unique/folly,leolujuyi/folly,hongliangzhao/folly,fw1121/folly,kernelim/folly,sakishum/folly,sonnyhu/folly,raphaelamorim/folly,theiver9827/folly,floxard/folly,alexst07/folly,chjp2046/folly,upsoft/folly,PPC64/folly,clearlylin/folly,facebook/folly,lifei/folly,constantine001/folly,sonnyhu/folly,zhiweicai/folly,doctaweeks/folly,ykarlsbrun/folly,cppfool/folly,romange/folly,KSreeHarsha/folly,Eagle-X/folly,fw1121/folly,Hincoin/folly,gaoyingie/folly,cole14/folly,tomhughes/folly,Eagle-X/folly,xzmagic/folly,CJstar/folly,leolujuyi/folly,yangjin-unique/folly,mqeizi/folly,brunomorishita/folly,clearlylin/folly,project-zerus/folly,romange/folly,cppfool/folly,PPC64/folly,rklabs/folly,floxard/folly,Orvid/folly,clearlinux/folly,PoisonBOx/folly,renyinew/folly,zhiweicai/folly,gaoyingie/folly,chjp2046/folly,mqeizi/folly,constantine001/folly,brunomorishita/folly,arg0/folly,arg0/folly,shaobz/folly,guker/folly,brunomorishita/folly,rklabs/folly,loversInJapan/folly,bsampath/folly,doctaweeks/folly,yangjin-unique/folly,sakishum/folly,tomhughes/folly,romange/folly,guker/folly,tempbottle/folly,KSreeHarsha/folly,clearlinux/folly,nickhen/folly,tempbottle/folly,bowlofstew/folly,gavioto/folly,stonegithubs/folly,nickhen/folly,sonnyhu/folly,bobegir/folly,xzmagic/folly,sonnyhu/folly,leolujuyi/folly,wildinto/folly,floxard/folly,charsyam/folly,renyinew/folly,Hincoin/folly,tempbottle/folly,fw1121/folly,mqeizi/folly,stonegithubs/folly,alexst07/folly,charsyam/folly,theiver9827/folly,raphaelamorim/folly,SammyK/folly,stonegithubs/folly,facebook/folly,theiver9827/folly,juniway/folly,PoisonBOx/folly,reddit/folly,nickhen/folly,project-zerus/folly,facebook/folly,SeanRBurton/folly,bsampath/folly,constantine001/folly,PoisonBOx/folly,alexst07/folly,xzmagic/folly,mqeizi/folly,gavioto/folly,hongliangzhao/folly,cole14/folly,project-zerus/folly,PPC64/folly,hongliangzhao/folly,bsampath/folly,wildinto/folly,tomhughes/folly,cole14/folly,ykarlsbrun/folly,tempbottle/folly,reddit/folly,bobegir/folly,ykarlsbrun/folly,clearlylin/folly,loverszhaokai/folly,reddit/folly,CJstar/folly,bikong2/folly,arg0/folly,gavioto/folly,nickhen/folly,brunomorishita/folly,juniway/folly,bikong2/folly,colemancda/folly,wildinto/folly,gaoyingie/folly,raphaelamorim/folly,ykarlsbrun/folly,bikong2/folly,clearlinux/folly,colemancda/folly,lifei/folly,loversInJapan/folly,hongliangzhao/folly,juniway/folly,loverszhaokai/folly,upsoft/folly,gavioto/folly,sakishum/folly,facebook/folly,ykarlsbrun/folly,bikong2/folly,rklabs/folly,guker/folly,Orvid/folly,Orvid/folly,SammyK/folly,PPC64/folly,leolujuyi/folly,wildinto/folly,Orvid/folly,colemancda/folly,nickhen/folly,CJstar/folly,doctaweeks/folly,bsampath/folly,PoisonBOx/folly,tomhughes/folly,loverszhaokai/folly,CJstar/folly