Handle Errors From Couch Replicator API
Handle Errors From Couch Replicator API

This change set handles and logs errors returned by Couch replicator's
async_replicate() and cancel_replication() functions.

The higher level functions in the XDC replication manager that use
these functions will be modified in a subsequent change set.

Also modified invocation of async_replicate() to trigger continuous
mode replication.

Change-Id: I6519069d44161f4497dedaa6497267a1a74ce26b
Reviewed-on: http://review.couchbase.org/10463
Reviewed-by: Aliaksey Kandratsenka <340b8e09ca65cd3fc686427fcfed17e87eaf61e2@gmail.com>
Tested-by: Aliaksey Kandratsenka <340b8e09ca65cd3fc686427fcfed17e87eaf61e2@gmail.com>

nimishzynga/ns_server,vzasade/ns_server,membase/ns_server,mschoch/ns_server,pavel-blagodov/ns_server,nimishzynga/ns_server,vzasade/ns_server,membase/ns_server,t3rm1n4l/ns_server,nimishzynga/ns_server,pavel-blagodov/ns_server,ceejatec/ns_server,mschoch/ns_server,ceejatec/ns_server,membase/ns_server,t3rm1n4l/ns_server,daverigby/ns_server,mschoch/ns_server,daverigby/ns_server,t3rm1n4l/ns_server,pavel-blagodov/ns_server,mschoch/ns_server,t3rm1n4l/ns_server,t3rm1n4l/ns_server,daverigby/ns_server,daverigby/ns_server,nimishzynga/ns_server,membase/ns_server,ceejatec/ns_server,membase/ns_server,vzasade/ns_server,mschoch/ns_server,ceejatec/ns_server,daverigby/ns_server,nimishzynga/ns_server,nimishzynga/ns_server,mschoch/ns_server,ceejatec/ns_server,ceejatec/ns_server,vzasade/ns_server,pavel-blagodov/ns_server,membase/ns_server