MB-14859: Handle quick successive BG Fetch of a key interleaved with exp pager 29/64929/2
authorManu Dhundi <manu@couchbase.com>
Tue, 23 Jun 2015 20:38:28 +0000 (13:38 -0700)
committerDave Rigby <daver@couchbase.com>
Fri, 17 Jun 2016 08:19:27 +0000 (08:19 +0000)
commit09ad001e84f8d86edabf88f750edac10e4b25e96
tree35ab1bb8f9932b4395b6a7f213db52540ff96cdb
parent9b194271f12e9b620c803a11b77a62e5402fb346
MB-14859: Handle quick successive BG Fetch of a key interleaved with exp pager

If two bgfetch are scheduled for a non existing key, and one bgfetch completes
and marks the key as non existant in the hash table, and subsequently expiry
pager removes it from the hash table before the second bgfetch completes,
we need to handle the case appropriately in the complete bgfetch code as
notify the memcached with appropriate return value.

(cherry picked from commit f9402cb0ee6a3592413e43855b0a48b7c0202a5b)

Change-Id: I8eaf54319014ea4039c74d2cbfab21ef275939fe
Reviewed-on: http://review.couchbase.org/64929
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Manu Dhundi <manu@couchbase.com>
Well-Formed: buildbot <build@couchbase.com>
src/ep.cc