MB-7885 Don't do unneeded unquotes in xdc_rep_utils.

URIs must be quoted all the way to lhttpc.

Change-Id: I1fa8f87dca28531524d7a4572daac5d4d9717fd3
Reviewed-on: http://review.couchbase.org/25250
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Chris Anderson <jchris@couchbase.com>
Reviewed-by: Junyi Xie <junyi.couchbase@gmail.com>
MB-5307 Don't set vbucket state to dead before deleting.

Several reasons here. First, we did it incorrectly anyway. Second,
ns_memcached:delete_vbucket does it for us. And finally, we hope that with
ep-engine support we'll get rid of this logic altogether.

Change-Id: I45874c5f59d637631ab8e93b0536d04631c279fc
Reviewed-on: http://review.couchbase.org/25235
Reviewed-by: Jin Lim <jin@couchbase.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-5307 Replace ns_config:search by search_quick.

On my microbenchmark search_quick worked about 4 times faster.

Change-Id: Ie86770a7d635eea2661b123bd261927a83e82fc5
Reviewed-on: http://review.couchbase.org/25236
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-5307 Don't log state when skipping janitor run.

The state can get quite large and consumes a lot of space in the
log. At the same time it doesn't seem to be overly valuable when
diagnosing issues.

Change-Id: I76bbb793b95f25a09ab11481acf50de114fb4b64
Reviewed-on: http://review.couchbase.org/25237
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
switched ns_server_sup to supervisor2

So that we don't have to rely on supervisor_cushion for compaction
daemon.

Change-Id: I1199636cbf1142a4742423120b443ae7cec09de9
mark

Change-Id: Id4f1e6185726a2e9040b88400a99e38d44390bb0
some work on child_erlang

Change-Id: I18164d654b491b9888418a567a37eee506235bf1
amend

Change-Id: Ia36f124e907931bfa2360c924d88a8da2c7d6344
mark

Change-Id: I284e155a510c7e6f5c1e45cf780ccf370ee3f5ef
mark

Change-Id: Iec066097d4460f1ac3e38ebf3267812eca77a8cf
mark

Change-Id: Ifbef4e3ec38724bbec00dd02755220270ab5c544
mark

Change-Id: I42f0b50c02aaf517a418da20306794ebaa2df308
mark

Change-Id: Ie94ed8e8a87a1ec8db70fc17d6ad1cdb8daa1a4d
mark

Change-Id: Ibcad264674dd68ebf735a6ba246da12e0b895b92
mark

Change-Id: I87abd4ffd87afc3af2b22364d608a58a2a519c04
mark

Change-Id: Ia998fdf5d4e135b703ef4e9a06dee0da5cfaa585
mark

Change-Id: I9d09070cb2da8ea41bb542baf7d86ce67edbc5ab
mark

Change-Id: I0564dbe8a354d625c0c3f27cee2c7a619777aa89
mark

Change-Id: Id8699e38aa98695e1c31a2a860a38cd311987b2a
mark

Change-Id: I38f7fc9649dac31683236ea637f0f40b7b8b0f99