MB-9771 Exchange viewgroup header via stdin/stdout

For view index incremental updater, change has been made
to receive viewgroup header via stdin and send back new header
after performing incremental updates via stdout. This avoids
writing of intermediate index header from native updater.

Change-Id: I68aecd2cb305a45a46f3d3fb45c705f2eab72ccc
Reviewed-on: http://review.couchbase.org/31361
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
MB-9118 Add API to rewind handle to next-oldest header

Change-Id: I81c46dd0f6d928b163fb3b379e4ad4562b3144dd
Reviewed-on: http://review.couchbase.org/32364
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Don't install header files unless told so

Change-Id: Ib1db860ea4722d0a8091d0ae1dd7d004d9b67d57
Reviewed-on: http://review.couchbase.org/32432
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
MB-9903 Remove old build instructions from README

Change-Id: I80e3cc10a2f6d1809deb9445f43aa2cf017434f1
Reviewed-on: http://review.couchbase.org/32369
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Python binding should look for couchstore.dll

The new CMake based build outputs the couchstore library as
couchstore.dll rather than libcouchstore-1.dll

Change-Id: I70c9c2e7e77ad5c9c40d1ec80d63675875caf114
Reviewed-on: http://review.couchbase.org/32541
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
MB-9771 Perform view ops sorting in incremental index updater

Change-Id: Ib7a135d68504137c27535df49f402e5ddf5102b0
Reviewed-on: http://review.couchbase.org/31549
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
Fix error codes in native index builder and index cleaner

Change-Id: I8dc0bb742ae51fb3112f038969ef00d81aae22ce
Reviewed-on: http://review.couchbase.org/31657
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
Remove redundant code for getting error string

Change-Id: I6369a14895d71fed61e2a45fe8d9aa833374e631
Reviewed-on: http://review.couchbase.org/31658
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
Add btree lookup comparator helper for handling special cases

Btree lookup api has the option of doing full btree iteration
by adding a NULL lowkey in the lookup request keylist. Added a
comparator wrapper to handle this special case so that any of
the comparator implementations need not handle this special case.

Change-Id: I963dcab73da18cc2d4eb25e393581e8341452cf4
Reviewed-on: http://review.couchbase.org/31659
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
Move arena_copy_buf method to util.cc

Change-Id: I2a80750038ce110a41f6903295f0655ae27468dc
Reviewed-on: http://review.couchbase.org/31660
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
MB-7629 Add native viewgroup compactor

Implementation of native view index compactor.
The native program receives viewgroup header info through stdin
and it creates a new index file and recreates all view btrees
and id btree. The resulting index header is written out to stdout.

Change-Id: I0c9c9ff33d3e005f22cc848c85d708b158d806e4
MB-7629 Add filter support for view compactor

A filter bitmask can be used to optionally ignore kvs
from certain vbuckets while rewriting the btrees to
the target index file during compaction.

Change-Id: I1e37834f062de10da29208a88619c5e3580f4de6
MB-7629 Add option to skip sorting in native btree updater

For compactor delta logs update, we do not want to
sort the log files since they are already sorted.

Change-Id: I298db564db2ebba677f0aa58924d97461348a0d5
MB-7629 Implement view compactor incremental progress stats

When view compactor makes progress, a stats callback
is used to update the current progress of inserted kvs.
For every percentage progress, the compactor program sends
inserted count stats through stdout.

Change-Id: I550a8ed077e6dda78753f4a944d0bff36a624540
Replace few string allocs and copy with strdup

Change-Id: I33cba00877556171693989e07af23ace7c0eba90
Add exit message handler for native index builder

Change-Id: If60d7eeef715d72caa89ccfbd3caac0daf28af59
Add kvs sorting step in initial index builder

Change-Id: I7e79d7cd13fb53cb17db4f5fad83f6c1d5963aa0
callback feed

Change-Id: If9b15092bdc7242772981859344f4f88dec45998
refactor

Change-Id: I1df61c6604d989d5df07acb6f6f925f360235eb9
next

Change-Id: If97d74fb5b08c5d64ed5ec0af345fca71f7519e1