Allow to soft-delete keys during config upgrade.

Change-Id: If36cc134de89d97ec2294e5759b5338d71a99cbc
Reviewed-on: http://review.couchbase.org/35289
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Add nodes_wanted() variant that takes config as a parameter.

Change-Id: I3085f46fb077e85e395e10ea66b3d640d4f1a81f
Reviewed-on: http://review.couchbase.org/35290
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Remove leftover per node keys upon switching to 3.0 compat mode.

Change-Id: Ic1e447f263513d096c455a6e7d6f7c9ae8871471
Reviewed-on: http://review.couchbase.org/35291
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Make ns_config keep a UUID representing config instance.

That's generated on first start-up and when config gets cleared.

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