CBD-399: remove unused function in XDCR checkpoint code

Change-Id: Ief77c8749412dfc3130e77e6afb1a2012c8e5599
Reviewed-on: http://review.couchbase.org/18710
Tested-by: Junyi Xie <junyi.couchbase@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Junyi Xie <junyi.couchbase@gmail.com>
MB-5307: fix stats description to include XDCR ops

Change-Id: I0e65a0fdd08034d6887ed2e859d8de75e0fbe038
Reviewed-on: http://review.couchbase.org/18723
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-5307: get rid of useless capi_replication:make_return_tuple

Change-Id: Ieac5e184715912ae362ce19cc70b8ea495a9da80
Reviewed-on: http://review.couchbase.org/18744
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-5307: killed add_with_meta and unused args of set_with_meta

Change-Id: I40c51ed46dd6aab054cd3b7c2dd7b46d028a1fdf
Reviewed-on: http://review.couchbase.org/18743
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-5307: introduced update_with_meta

There's nearly no semantic difference between delete and set given how
get-meta handles them. And given how our code demultiplexes into them.

Change-Id: I2c94ebba03788bb8d03fbb045bd937e7a2fbfa0f
Reviewed-on: http://review.couchbase.org/18745
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-5307: killed ns_memcached:{set,delete}_with_meta

Because they're not used anymore

Change-Id: I3cd5bb7c0cd8a4e580f9959b1f3aed2410eab9c8
Reviewed-on: http://review.couchbase.org/18746
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
MB-5307: dont bother with revs for document editing GET

Because we don't need to

Change-Id: I09a08a936afec97d86f284a68e7292fd6aac4750
Reviewed-on: http://review.couchbase.org/18747
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
MB-5307: got rid of obsolete capi_utils:get_meta

This removes much of needless data massaging in CAPI and makes it
smaller and cleaner.

Change-Id: I3a53dde1d5426dd11de7d0b4fe59f5a0f214c006
Reviewed-on: http://review.couchbase.org/18748
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
MB-5307: killed support for filtering vbuckets in ebucketmigrator

We never used this thing. AFAIK initial intention was for subset of
vbucket filter changes to not change actual vbuckets set, but to
filter their events out.

Change-Id: Iac818f64e115100d8bee6de3536a62938f44c22a
Reviewed-on: http://review.couchbase.org/18763
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-5307: implemented ebucketmigrator_srv:had_backfill

Change-Id: I507af14abf7721385a6b4d821faee538d328c5cb
Reviewed-on: http://review.couchbase.org/18771
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
CBD-399: remove comparing deleted flag during XDC replicating

The algorithm to pick up winner during XDCR does not account the
deletedness of an item.

Change-Id: I93d31c6d5a8c28625f0f8a5064e35d71d6f91614
Reviewed-on: http://review.couchbase.org/18781
Tested-by: Junyi Xie <junyi.couchbase@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-5307: remove deleted flag in get_meta function

Change-Id: I43a82698f17b47af5ac03531eb65941d37233356
Reviewed-on: http://review.couchbase.org/18782
Tested-by: Junyi Xie <junyi.couchbase@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-5307 Remove empty and unused menelaus.hrl file.

Change-Id: I224570c9d5d1191bbff3e42fcb520da97e372e46
Reviewed-on: http://review.couchbase.org/18815
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-5307 Move xdc_replicator.hrl to include directory.

Because unlike couchdb, ns_server has a separate directory for header
files.

Change-Id: Ie89052ae161bcaf4ff77626a054a66901f078a63
Reviewed-on: http://review.couchbase.org/18816
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-5307 Be a more efficient while checking bucket accessibility.

Instead of grabbing all the buckets grab only one. And since now
ns_bucket:get_bucket works inside ns_config process, it avoids
potentially expensive copy of unused data between processes.

Change-Id: Ifbdb63b6bf89fefc1b044cf22448ca3dbb7e3ba2
Reviewed-on: http://review.couchbase.org/18817
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-5307 Generalize bin_concat_path and concat_url_path functions.

So that it's possible to build urls with query strings.

Change-Id: I0e1fe822e968b379db727000c76370001dd85b79
Reviewed-on: http://review.couchbase.org/18818
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-5307 Support start index in cluster_connect.

Change-Id: I0fdbc5c33726a131657975e2426150b771533427
Reviewed-on: http://review.couchbase.org/18819
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-5307 Allow specifying http options to json_request_hilevel.

Change-Id: Ifd67b5fb9a750a8d50e7bf44490cb12a6014933f
Reviewed-on: http://review.couchbase.org/18820
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-5307 Remove not relevant multinode readme file.

Change-Id: I8f8bf2ff8ce39d179cae78ee6e049c933f785748
Reviewed-on: http://review.couchbase.org/18821
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-5307 Remove debug message left there by accident.

Change-Id: Ia82b9ff959853f3ed2603adf78b03cd7500c8c25
Reviewed-on: http://review.couchbase.org/18822
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>