Fix erase in Iterate
authorYanbo Xu <xuyanbo@fb.com>
Fri, 15 Dec 2017 21:43:53 +0000 (13:43 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 15 Dec 2017 21:50:56 +0000 (13:50 -0800)
commitbaa03294ee862eb532108797267dc72497afaa16
tree2286e933a77cb019b562f8e78d5c97360f3ca879
parent8b3a565d0077e92d94c49425850babc65ce1766d
Fix erase in Iterate

Summary:
The iterator returned from erase api could skip nodes. The fix is to
initialize the returned iterator with right value.

Reviewed By: djwatson

Differential Revision: D6579707

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