CCBC-221: Don't use iops in minimal.c

The iops usage is an advanced feature and is not needed in a normal
application. Generally only users already using an event loop should be
using this example.

Change-Id: I6ab62e385b07744119a3150608992d505af54685
Reviewed-on: http://review.couchbase.org/27088
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
CCBC-183 Improve lcb_get_replica()

Now it is possible choose between three strategies:

1) LCB_REPLICA_FIRST: previously accessible and default now, when the
   caller will get first successful replica or error

2) LCB_REPLICA_ALL: Ask all replicas to send keys

3) LCB_REPLICA_SELECT: select particular replica by the index (from 1
   to 3 inclusive). This one is faster, but can generate false
   negatives

Change-Id: Ib50a578d6ac99a0e1cb05c6a6a82b7c0c13082a5
Reviewed-on: http://review.couchbase.org/27308
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Fixup typo about replica indexes: they are zero-based

Change-Id: Ibe87f8f03a5e4bd577c1435bb53affcb2789afb5
Reviewed-on: http://review.couchbase.org/27347
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Added a note about replica order, minor phrasing.

Change-Id: I04c092ac88dd3baefdd4bf248b11809a6dd69363
Reviewed-on: http://review.couchbase.org/27350
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Update metadata for release 2.0.7

Change-Id: Iafaf9f72b3ca278a41c3a49394c407ab9b49c1c6
Reviewed-on: http://review.couchbase.org/27349
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Set date in RELEASE_NOTES

Change-Id: I5fce32f97913a3e2e073be4b367eb0d0114ecc2b
Reviewed-on: http://review.couchbase.org/27352
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Exit just after version output

Homebrew jenkins found this issue:
http://bot.brew.sh/job/Homebrew%20Pull%20Requests/617/version=lion/console

Change-Id: Id50e0766777c7f5b28b144190a656c772a7fe01b
Reviewed-on: http://review.couchbase.org/27359
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Fix compile error with -Werror

Change-Id: Ifac2f0b1c06534bc85bad5fe2b2594c4eb208dda
Reviewed-on: http://review.couchbase.org/27387
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Allow builds with -DNDEBUG

Change-Id: Idfd9c7a7a057301c88f9aaec15d46dd86fbe5844
Reviewed-on: http://review.couchbase.org/27463
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Re-Indent CMakeLists

Change-Id: I39325290755d9f04244c828bb14ca2099bcd51e8
Reviewed-on: http://review.couchbase.org/27435
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Sort lists in CMakeLists.txt alphabetically

Change-Id: I39d1c8e280bc1d536ae0e9f36090d480ce327c45
Reviewed-on: http://review.couchbase.org/27531
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Include CMakeLists.txt into tarball

Change-Id: I1901182bd1a4ed975e116316775f213f48e715a4
Reviewed-on: http://review.couchbase.org/27536
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Disable MockUnitTest.testPurgedBody temporarily

Change-Id: Ic5f37892771efbb19266bb1b946a8ad5f24cfa3e
Reviewed-on: http://review.couchbase.org/27532
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Fix 'make distcheck' (homebrew acceptance test)

Change-Id: Ie61efb963f30a4548c97dfe63e261db36c2b66e2
Reviewed-on: http://review.couchbase.org/27533
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Implement circular list

Change-Id: I7edf4525508c125c3b3e7af9d76cc3cffe3cba46
Reviewed-on: http://review.couchbase.org/27515
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Implement select(2) plugin

Change-Id: Ia7ca11cba8e69da4a5d4fc7c1b09fb328f903287
Reviewed-on: http://review.couchbase.org/27516
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Rewrite test for CCBC-103 to use lcb_list_t

Change-Id: I9ad4023f50cd00d71e401d698da8610ae25f65a1
Reviewed-on: http://review.couchbase.org/27534
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Remove win32 plugin (replaced with select plugin)

Change-Id: Iace331c481cf39b6c548c169adc12b6a71509fcb
Reviewed-on: http://review.couchbase.org/27535
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Update packaging layout in response to select plugin

New select(2)-based plugin allows to ship highly portable IO plugin
with the core library (although not as performant on big numbers of
sockets/events, which is fit most of needs of network client).

Therefore we can simplify packaging layout. So that the user can
install completely working solution  with the following command

    # with headers to compile libcouchbase-based clients
    sudo apt-get install libcouchbase-dev
    sudo yum install libcouchbase-devel

    # without headers if in case of just binary depency
    sudo apt-get install libcouchbase2
    sudo yum install libcouchbase2

This patch is making following changes:

* Remove libcouchbase2-backend virtual package
  There no need in this package, because plugin packages selected more
  explicitly. This change doesn't influence on upgdade.

* Make libcouchbase2 package virtual. It will be alias to
  libcouchbase2-core

* Remove libcouchbase2-all virtual package, this package will just
  dissapear and and doesn't influence on upgrade

Change-Id: I090cea1ba1f6596f0eb92b10f6a4a0e7232235a8
Reviewed-on: http://review.couchbase.org/27539
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reformat the code

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