Fix folly::Singleton DFATAL
authorAndrii Grynenko <andrii@fb.com>
Sat, 21 Feb 2015 01:22:54 +0000 (17:22 -0800)
committerAlecs King <int@fb.com>
Tue, 3 Mar 2015 03:28:20 +0000 (19:28 -0800)
commit5f2d43af2cd1c51ddef0ee3cf90bad2e5d2bb769
treecea1e2dc81287e564c693047360fbfeccf8fd729
parent2f3b69cc03f35a021614cfd14c9dd43f9ebc915e
Fix folly::Singleton DFATAL

Summary:
Previously leak-fatal could never happen because we were incorrectly checking singleton state.
Sending this diff to see how many tests will actually fail and potentially fix worst offenders.

Test Plan: unit tests

Reviewed By: stepan@fb.com

Subscribers: trunkagent, folly-diffs@, yfeldblum

FB internal diff: D1838405

Signature: t1:1838405:1424478983:94cda86ed57f38b0cf626b74804fbc168d182c66
folly/experimental/Singleton-inl.h
folly/experimental/test/SingletonTest.cpp