Fix compilation on win32

Change-Id: I67bf8ea117021dcd6b6cfc95e77d8e3fd8d568ec
Reviewed-on: http://review.couchbase.org/31559
Reviewed-by: Sarath Lakshman <sarathlakshman@slynux.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Use the C++ interface to snappy from C++

Including the C interface from C++ cause compilation on
some platforms since the C header use a trailing comma
in one of the enumerations, which is not allowed in C++

Change-Id: I97dd1184cb0afa0fd9b5df818f6966ac5eb113ce
Reviewed-on: http://review.couchbase.org/31580
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Ignore test artifacts

Change-Id: I7abd01c96078e3a0c30f2146b591231bd2c29729
Reviewed-on: http://review.couchbase.org/31596
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Use UINT64_C to define BP_DELETED_FLAG

Change-Id: Id50e1f221e33263bc1367eddbda5cbfc28ebe475
Reviewed-on: http://review.couchbase.org/31595
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
MB-9771 Add native incremental index updater

Implementation of native external program for performing
incremental update into the index. The external program receives
necessary info such as index file location, header pos, sorted
operation list files, buffersize, etc via stdin and it efficiently
performs bulk updates to the view btrees and result stats are
sent out via stdout.

Change-Id: Ib35f741e5b615c4dd7f6c3527079538dd56373a0
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
MB-9771 Perform view ops sorting in incremental index updater

Change-Id: Ib7a135d68504137c27535df49f402e5ddf5102b0
Fix error codes in native index builder and index cleaner

Change-Id: I8dc0bb742ae51fb3112f038969ef00d81aae22ce
Remove redundant code for getting error string

Change-Id: I6369a14895d71fed61e2a45fe8d9aa833374e631
Fix view comparator for range lookups

Comparator should return zero if any of the keys
are of zero in length.

Change-Id: I963dcab73da18cc2d4eb25e393581e8341452cf4
Move arena_copy_buf method to util.cc

Change-Id: I2a80750038ce110a41f6903295f0655ae27468dc
Add native view group compacter

Change-Id: I8f8f43c6fd7afb63db45d0b13eb7110ec8055cd7