CCBC-449: Include pillowfight in list of cbc commands.

Change-Id: I726227219b6cc6f57da8f25c4cfb2a4abf4c7fbf
Reviewed-on: http://review.couchbase.org/38223
Tested-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Merge packet-ng

Conflicts:
	contrib/libvbucket/cJSON.c
	contrib/libvbucket/vbucket.c
	include/libcouchbase/compat.h
	include/libcouchbase/types.h
	include/libvbucket/vbucket.h
	man/bsd/man3/lcb_cntl.3
	man/bsd/man3/lcb_create.3
	man/bsd/man3/lcb_strerror.3
	man/bsd/man3/libcouchbase.3
	man/man3couchbase/lcb_cntl.3couchbase.txt
	man/man3couchbase/lcb_create.3couchbase.txt
	man/man3couchbase/lcb_strerror.3couchbase.txt
	man/man3lib/libcouchbase.3lib.txt
	man/svr4/man3couchbase/lcb_cntl.3couchbase
	man/svr4/man3couchbase/lcb_create.3couchbase
	man/svr4/man3couchbase/lcb_strerror.3couchbase
	man/svr4/man3lib/libcouchbase.3lib
	src/arithmetic.c
	src/bconf_provider.c
	src/compat.c
	src/connect.c
	src/connection_utils.c
	src/flush.c
	src/get.c
	src/http_parse.c
	src/packet.c
	src/remove.c
	src/server.c
	src/server_io.c
	src/server_parse.c
	src/stats.c
	src/store.c
	src/touch.c
	src/verbosity.c

Change-Id: I24862d2c0bb7e6df701089b0ca9810c9a29f635b
Reviewed-on: http://review.couchbase.org/38540
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Brett Lawson <brett19@gmail.com>
CCBC-453: Add pause-at-end option to pillowfight

Adds a new --pause-at-end (-E) option to pillowfight. When specified,
pillowfight will pause after completing its workload (keeping
connections open) until it recieves user input.

Change-Id: I6cdff66a29150de0c24352f7eb11af62f2f2db7f
Reviewed-on: http://review.couchbase.org/38473
Tested-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
pillowfight: rename num-instance to num-instances

typo

Change-Id: Id653cc407bb9607d156c11d50a249bd6bf32662d
Reviewed-on: http://review.couchbase.org/38591
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Brett Lawson <brett19@gmail.com>
Pillowfight: Properly handle timings

- Don't spam the screen with timings for each iteration. Print them rate
  limited for each second.
- Fix header printing

Change-Id: I80465a4c067e4991e9e2d3936aade2c6cc1f4e8b
Reviewed-on: http://review.couchbase.org/38592
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Brett Lawson <brett19@gmail.com>
histogram: use 4 digit slots

Change-Id: Ifc96a9fa6a1b346a5405e9df3ec02c502d17dad3
Reviewed-on: http://review.couchbase.org/38593
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Brett Lawson <brett19@gmail.com>
CCBC-273: Increase granularity for timings between 1-10ms

Change-Id: Ie39e329a37172aef7b55b8b7384daeb08c60ab80
Reviewed-on: http://review.couchbase.org/38594
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Update README for latest changes

- Declare dependencies
- Provide note about OS X OpenSSL
- Add mention of release23 branch
- Remove mention of packet-ng branch
- Remove reference to 1.x blog - we're moving away from that model
Change-Id: I8399895bf740df114b082dba33c2d0c8c96ba9f8
Reviewed-on: http://review.couchbase.org/38595
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Restore changelogs to 2.3.1 versions

Change-Id: I4a78371daf1f4e65b954c7682a4c4d63a4352552
Reviewed-on: http://review.couchbase.org/38626
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Update release notes for 2.4.0-dp1

Change-Id: I01fa8889564212c9d52049206a4de1bf18399531
Reviewed-on: http://review.couchbase.org/38570
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Update packaging scripts

This consists of a set of changes allowing proper packaging for the
newer library version. These changes are:

- Use common scripts to deduce version information
- Remove man3 and cbcrc manpages from installation list
- Build with a static snappy on RPM platforms
- Debian platforms require a system-provided libsnappy
- Enhance debian script for paralell building

Change-Id: If9f6e973cd85d9bec6a3208e997bad93a04de62d
Reviewed-on: http://review.couchbase.org/38569
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Update release metadata for 2.4.0-dp1

This bumps up the 'revision' ABI number to 16. The previous was 14, but
a prospective 2.3.2 will be 15

Change-Id: I463a769849aae62868e11f69dbe2d00e0dd80a4b
Reviewed-on: http://review.couchbase.org/38571
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Update to latest CouchbaseMock

Change-Id: I4275f924e02e10fd28fd8d403b6a70f19ebc2d38
Reviewed-on: http://review.couchbase.org/38625
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Fix win32 build (declaration and code mix)

Change-Id: Id1b9c93df95e28f905732367ef049c5589f2597c
Reviewed-on: http://review.couchbase.org/38631
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Brett Lawson <brett19@gmail.com>
check-all: allow to control logging level from commandline

Change-Id: I8f506e0e491c1eb0df48ca668ad9f9035671b5dd
Reviewed-on: http://review.couchbase.org/38682
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Brett Lawson <brett19@gmail.com>
cmake: Fix download handling

Sometimes cmake's download handling gets stuck on various platforms.
This abstracts downloading into its own module and employs either wget
or powershell to perform the actual download.

Change-Id: I1dd01b2b8559455549d03d088d13e8b509d89550
Reviewed-on: http://review.couchbase.org/38681
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Brett Lawson <brett19@gmail.com>
CCBC-455: Re-add cbcrc

This readds the configuration file feature for the cbc tools. This also
adds a new command called 'write-config' which can dump the current
configuration to its destination file.

Change-Id: I840316adf78daf8c84e7fd346bc4cc90053d8fc0
Reviewed-on: http://review.couchbase.org/38684
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Brett Lawson <brett19@gmail.com>
cliopts (several minor changes. see description)

- use the Option::stmp member to store the backing char* for the default
  value:
  The whole reason stmp exists in the first place is so that the storage
  space for the default value is scoped with the actual options object, so
  use it for that.

- cliopts: Support --foo=bar style
  I don't know why I just realized I couldn't do this. but the fix is
  easy

- allow to hide options
  Some options are deprecated but should still be supported in case people
  rely on old behavior or forget to remember the new ones.

Change-Id: I6eda14f9d9ac7a3193e71127b514da2a59d48584
Reviewed-on: http://review.couchbase.org/38685
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Brett Lawson <brett19@gmail.com>
cbc: several minor changes (see description)

- Use 'expiry' everywhere instead of 'ttl'

- Allow to specify HTTP request body via stdin

- Don't make password mandatory for admin handles
  Some commands like flush don't need a password (or can use the
  bucket-level credentials)

- stats output should go to stdout, not stderr
  Makes it more easy to grep stuff

- support symlink invocation

Change-Id: I8987bfef7e949840816e034df3b9218098095295
Reviewed-on: http://review.couchbase.org/38686
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Brett Lawson <brett19@gmail.com>
pillowfight: Option renaming

- Rename the confusing '--iterations' option to '--batch-size'. The
  option controls the batch size, not how many times the workload
  iterates.

- Hide the `-Q` or `--num-instances` parameter. It is confusing and
  doesn't really gain much. The only thing that should matter in a
  threaded workload where each instance is locked is the number of threads
  executing

- Add the `--num-cycles` parameter to indicate how many iterations (in
  the real sense) the loop should run.

Note that the old options are still supported, but are left undocumented

Change-Id: Idc4f2c9a65aed7cbdda8cbc942f96852f9a58aa2
Reviewed-on: http://review.couchbase.org/38687
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Brett Lawson <brett19@gmail.com>