fix AtomicHashMap race condition
authorDario Russi <drussi@fb.com>
Tue, 14 Jan 2014 01:00:57 +0000 (17:00 -0800)
committerJordan DeLong <jdelong@fb.com>
Thu, 16 Jan 2014 19:21:30 +0000 (11:21 -0800)
Summary: AHM::find checks that the returned SimpleRetT index is >= numMapsAllocated_ but that value may have changed and find pick the first element in the next sub map. Use success instead.

@override-unit-failures

Test Plan: unit tests

Reviewed By: delong.j@fb.com

FB internal diff: D1126684


No differences found