Put readable RELEASE_NOTES into the repo

Change-Id: I7f2c7f8bffb06560e0188024b7de0bd511503003
Reviewed-on: http://review.couchbase.org/23107
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Update metadata for release 2.0.1

The library version will be 2.0.1 as well as package version

Change-Id: If8ee8edc53699d3c50811bf826ad807f3bce23a4
Reviewed-on: http://review.couchbase.org/23181
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
CCBC-143 Fix version '2.0.1' mark and set release date in log

Change-Id: I07a2159e1cc8a4af4ca30bbce0ddc09f5316eed1
Reviewed-on: http://review.couchbase.org/23183
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Don't include configuration.h in the tarball

Change-Id: Id85eb5e0042d48419f64b6be25c56017cae7dbcd
Reviewed-on: http://review.couchbase.org/23227
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Put note about environment variables to select IO plugins

Change-Id: I872099dca52fb223f36d173103c1fe970e38db1b
Reviewed-on: http://review.couchbase.org/23278
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Revert "Don't include configuration.h in the tarball"

libcouchbase/configuration.h should be accessible on the target system
when you are doing 'make install'

This reverts commit 5a6da4abcad989436085dd3815e88db67457ec74

Change-Id: I44384ddb70a33fc2d41aa56847d2a0c63245ba4c
Reviewed-on: http://review.couchbase.org/23279
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Review RELEASE_NOTES

Update dates, texts and fix typos

Change-Id: I176f24f8a4c0ab0fa00555607c3fd92e13f3562b
Reviewed-on: http://review.couchbase.org/23250
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Fix typo when undefining xmacro

Was #undef X where it should be #undef XX

Change-Id: I1073a580396ee15e7db3e2b6bb57a17d75fe49f8
Reviewed-on: http://review.couchbase.org/23243
Tested-by: Mordechai Nunberg <mnunberg@haskalah.org>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Fix compiler warning

Change-Id: I7bbec9c5b48ab4a8226de568485f7cd0133c002c
Reviewed-on: http://review.couchbase.org/23342
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Protect HTTP requests from SEGFAULTs and memleaks

* request_valid() and lcb_cancel_http_request() must not dereference
  request pointer until it makes sure that the pointer is valid

* lcb_cancel_http_request() must not remove the request from the
  hashset, because it will prevent it from destroying

* on_data callback should check if the request has been cancelled and
  finish it without on_complete notification.

Change-Id: I68f50aaff96b0e01ed9b436b2c22525a76c3ab48
Reviewed-on: http://review.couchbase.org/23497
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Update RELEASE_NOTES

See: http://review.couchbase.org/23497
Change-Id: Ief11d0b163041757098df9b884242a7756d06daa
Reviewed-on: http://review.couchbase.org/23503
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Make test kv functions/structures more versatile

These functions provide the base for allowing more complex operations
and return information. It is a basis for subsequent observe tests

Change-Id: I8dfe188527a16e8c66577f5e5d84a21d43fada11
Reviewed-on: http://review.couchbase.org/23472
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Provide scoped handle for lcb_t in tests

We allocate our own iops structure (which we might want to make more
flexible in the future) - so this provides a simple 'throw-away' handle
which doesn't leak memory.

Change-Id: I04745c9ef3e881e43de987fbb16b78a2c8d25d3a
Reviewed-on: http://review.couchbase.org/23513
Tested-by: Mordechai Nunberg <mnunberg@haskalah.org>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
CCBC-154 update lcb_strerror for undocumented values

Change-Id: I2396c9d35d8fbc07cb14e42da4acd98087910669
Reviewed-on: http://review.couchbase.org/23520
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Provide hashset_get_items

Allows an easy way to retrieve a list of all the items

Change-Id: Ic0ab952c5f46fb7533e588d2113a654c1fdec5a1
Reviewed-on: http://review.couchbase.org/23524
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Packet dump should be to stderr

Change-Id: Ic91dfa874cb9d2694154bbd4214fe3de7252374d
Reviewed-on: http://review.couchbase.org/23523
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Allow adding packets with custom command_data

This adds an internal function which allows adding a populated
command_data structure. Currently this wraps around retry_packet but
provides a more intuitive name and would be immune to change in case
retry_packet is ever changed to do something else

Needed by subsequent observe fixes

Change-Id: Ib91b7e81d7ddf7bc67256f4d994baade3e951f9a
Reviewed-on: http://review.couchbase.org/23525
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Remove compiler error

The wrong type of constant is being passed to the function,
so the receiver would treat it as LCB_AUTH_ERROR.

Change-Id: Idce927206b5163f1c4b1fb9cb645e6644d0131fa
Reviewed-on: http://review.couchbase.org/23630
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Add ringbuffer_peek_at

This allows us to peek further into a ringbuffer

Change-Id: I5171fde8786dfdb06dce0a29628617b988a14655
Reviewed-on: http://review.couchbase.org/23632
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Update timer after handing data

Change-Id: Ie0297e7d7fd855c6dab84610a1f1fb7d5111ffb0