From 096bde270f6c8d80d3ba8f2d10e7514264ab68e0 Mon Sep 17 00:00:00 2001 From: Andrii Grynenko Date: Tue, 11 Nov 2014 11:13:30 -0800 Subject: [PATCH] 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 --- folly/experimental/Singleton.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/folly/experimental/Singleton.h b/folly/experimental/Singleton.h index ff0ef56f..c42daf01 100644 --- a/folly/experimental/Singleton.h +++ b/folly/experimental/Singleton.h @@ -126,8 +126,8 @@ const char* const kDefaultTypeDescriptorName = "(default)"; // a key in unordered_maps. class TypeDescriptor { public: - TypeDescriptor(const std::type_info& ti, std::string name) - : ti_(ti), name_(name) { + TypeDescriptor(const std::type_info& ti, std::string name__) + : ti_(ti), name_(name__) { if (name_ == kDefaultTypeDescriptorName) { LOG(DFATAL) << "Caller used the default name as their literal name; " << "name your singleton something other than " -- 2.34.1