MB-21540: DCP: Replace abort() with exceptions 72/69372/5
authorDave Rigby <daver@couchbase.com>
Tue, 1 Nov 2016 15:54:22 +0000 (15:54 +0000)
committerDave Rigby <daver@couchbase.com>
Fri, 4 Nov 2016 13:29:59 +0000 (13:29 +0000)
commit75161367d28e99f36ee6452aedb28fcc7cded844
treea4ad22c51f7f3a3dacaba72024ba4e6c59cb82c7
parent027e594be704a8372f4494df94d049dd823f2f8b
MB-21540: DCP: Replace abort() with exceptions

Remove use of abort() when checking for "impossible" logical
situations in DCP. Where possible remove the abort entirely
(e.g. explicilty handle all cases in swtich statements), otherwise
replace with std::logic_error.

Change-Id: I9a45e283562b5e7361f8e9edd4316d9d253b4e05
Reviewed-on: http://review.couchbase.org/69372
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Daniel Owen <owend@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
src/dcp/backfill-manager.cc
src/dcp/backfill.cc
src/dcp/producer.cc
src/dcp/producer.h
src/tapconnection.h