Fix erase in Iterate (2)
authorDave Watson <davejwatson@fb.com>
Tue, 19 Dec 2017 22:30:19 +0000 (14:30 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 19 Dec 2017 22:35:39 +0000 (14:35 -0800)
commita807bde9b3f486c77996e717f5154f60f50fe95f
tree0480ca35de70ce2851e9b49bafdf7acfeb696541
parent74502e3cc02daef719f6255cc55a7bebe0772a26
Fix erase in Iterate (2)

Summary:
Previously D6579707.

Correctly advance to next item if we erase the current element.  Corner cases were slightly off if we were at the end of a hash chain.

Reviewed By: yfeldblum

Differential Revision: D6603518

fbshipit-source-id: acb959e5bcd5da1c3df642b75985d464fdd3b23d
folly/concurrency/ConcurrentHashMap.h
folly/concurrency/detail/ConcurrentHashMap-detail.h
folly/concurrency/test/ConcurrentHashMapTest.cpp