CBIDXT-107: example script to add / delete buckets.

Change-Id: I3150838c9fdc4ea03cf7d400d3708df6e86e0b68
Reviewed-on: http://review.couchbase.org/40789
Reviewed-by: Pratap Chakravarthy <prataprc@couchbase.com>
Tested-by: Pratap Chakravarthy <prataprc@couchbase.com>
CBIDXT-133: workaround to send nil secondary-keys.

Change-Id: I6bb8aed8d4c92b10ee98d48565d2d87b9f9d04ae
Reviewed-on: http://review.couchbase.org/40822
Reviewed-by: Pratap Chakravarthy <prataprc@couchbase.com>
Tested-by: Pratap Chakravarthy <prataprc@couchbase.com>
Remove unused fields from `activeVbucket`.

Change-Id: Id3a680e5a83fee816b950fb283c074f278214491
Reviewed-on: http://review.couchbase.org/40867
Reviewed-by: John Liang <johliang00@gmail.com>
Reviewed-by: Pratap Chakravarthy <prataprc@couchbase.com>
Tested-by: Pratap Chakravarthy <prataprc@couchbase.com>
Added comment to adminlib.go

Change-Id: I89945baffe18fe2747ea214466fc823b2af7dcf4
Reviewed-on: http://review.couchbase.org/40898
Reviewed-by: Pratap Chakravarthy <prataprc@couchbase.com>
Tested-by: Pratap Chakravarthy <prataprc@couchbase.com>
CBIDXT-214 Copy Maps Between Components

Maps need to be copied when exchanged between components/functions.

As per golang documentation:
Like slices, maps hold references to an underlying data structure.
If you pass a map to a function that changes the contents of the map,
the changes will be visible in the caller.

Change-Id: Ifeea6202f998f8f1fcd9e9225a6e1f1960fa8b29
Reviewed-on: http://review.couchbase.org/41016
Reviewed-by: Deepkaran Salooja <deepkaran.couchbase@gmail.com>
Tested-by: Deepkaran Salooja <deepkaran.couchbase@gmail.com>
CBIDXT-136 Handle break properly in Slice Writer

A "break" statement terminates execution of the
innermost "for", "switch" or "select" statement.

Change-Id: Id71b5dcdde0234da9e78932c8f203cb1ebc2c199
Reviewed-on: http://review.couchbase.org/41017
Reviewed-by: Deepkaran Salooja <deepkaran.couchbase@gmail.com>
Tested-by: Deepkaran Salooja <deepkaran.couchbase@gmail.com>
Set Restart Flag after Add/Del Bucket

It is mandatory to set Restart flag if adding or
deleting a bucket from a stream

Change-Id: I7ed1516bc7e0c5882e4473a401ff71640fb29c87
Reviewed-on: http://review.couchbase.org/41415
Reviewed-by: Deepkaran Salooja <deepkaran.couchbase@gmail.com>
Tested-by: Deepkaran Salooja <deepkaran.couchbase@gmail.com>
Merge remote-tracking branch 'upstream/master'

Conflicts:
	secondary/projector/kvfeed.go
do not stop kvfeed if it is not started; remove started flag from
bucketfeed, vbucket, and endpoint since it is not being used