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
// 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 "