MB-20247: Check scan return code 01/68801/2
authorJim Walker <jim@couchbase.com>
Mon, 17 Oct 2016 10:21:40 +0000 (11:21 +0100)
committerDave Rigby <daver@couchbase.com>
Tue, 18 Oct 2016 12:19:57 +0000 (12:19 +0000)
commit1415750d58c9991520fb7e5faa4188de334b4f78
tree1f404ea94bf7e043dfbc8acca262dcf5e4f3e20d
parent4297a70c3fdd248caf708129a706a1f4f1a4e106
MB-20247: Check scan return code

kvstore->scan can fail, so check the return code to prevent trying
to continue loading whilst failing.

Extension of changes made for MB-16910

Change-Id: Ia890d685d7acb144eca374ca0964e3d65100f89e
Reviewed-on: http://review.couchbase.org/68801
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
src/warmup.cc