MB-24472 [Ephemeral]: Check for null vBucket in getNumPersistedDeletes 06/78406/2
authorDave Rigby <daver@couchbase.com>
Mon, 22 May 2017 14:36:08 +0000 (15:36 +0100)
committerDave Rigby <daver@couchbase.com>
Tue, 23 May 2017 17:59:05 +0000 (17:59 +0000)
commit13127c0120fdb6fa5d92eca472e0aa5563aaee1f
treef284c9e5c177b0d5cad4ab2624c413c94ef0b37b
parent042bf504cb62fda55f6c06d179ddd66955eb3a37
MB-24472 [Ephemeral]: Check for null vBucket in getNumPersistedDeletes

Check the vBucket obtained from the vbmap is non-null before
dereferencing. If it is null, throw std::runtime_error.

Change-Id: I181d8b7d696386bee5b18daa8b211cbc7238d87b
Reviewed-on: http://review.couchbase.org/78406
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Daniel Owen <owend@couchbase.com>
src/ephemeral_bucket.cc