Fix post 3.19 v8 support related wrong typedef

Change-Id: I275fcfdf502224725337221a6caf36026dbd701a
Reviewed-on: http://review.couchbase.org/31127
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
MB-9730 Add support for couch_file to refresh EOF

The couch_file process and its child writer process keeps track of
EOF information. This EOF position is incremented when data is
appended to the file by the writer process. The reader also
makes use of stored EOF position for reading latest header from
the current file process.

When an external process opens the same file and appends data into
the file, the EOF information held by the couch_file process becomes
invalid. Hence, we need to update the EOF information held by the
couch_file process explicitly.

Added couch_file:refresh_eof(Pid) method to refresh the EOF position
by reopening the backing write fd for the file.

Change-Id: I427646e0a0707a2ccaca5af8a354552dc184dfc8
Reviewed-on: http://review.couchbase.org/30989
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
MB-9730 Integrate native viewgroup cleanup support

An external native program `couch_view_group_cleanup`
is invoked to perform viewgroup cleanup. On successful cleanup,
viewgroup couch_file processes are refreshed to use new views
after cleanup.

A comparison of time taken for cleanup before and after this change
benchmarked by running `test/11-updates-cleanup-many-views.t` with
6400000 documents are as follows:

Before:
Removed 30000 values from the index in 4.468 seconds

After:
Removed 30000 values from the index in 2.364 seconds

Change-Id: I1ef010a5c1dad8366e90dbbba4bf93117a92377f
Reviewed-on: http://review.couchbase.org/30787
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
 MB-9730 Add support to stop cleaner native process

stop_cleaner() function needs to ensure that the
viewgroup cleanup native process has exited.
Added a mechanism to send exit message to native viewgroup
cleanup process and wait for process to exit and send exit status.

Change-Id: If187e2114a0608a8f704f6b43a3c36a4817035ab
Reviewed-on: http://review.couchbase.org/30988
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 an unused variable in rollback unit test

Remove an unused variable since it is violating the fact
that couch_file process pid can change in between updates since
viewgroup cleaner resets the couch file process for the viewgroup.

Change-Id: I8e3f9020e769c195970ae2984ea4bcaf2d5afee6
Reviewed-on: http://review.couchbase.org/31040
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
Use 12000 as UPR port

For development Couchbase is normally started via ./cluster_run.
There the UPR port 12000. Hence change to this port for now.

Change-Id: If6abe5678cb03fead2d922846bebd4b0bce50335
Merge branch 'master' into upr10
Be more specific in type specification

Change-Id: I8c4e4c6da6f8430b1352971f6ea527da9133cdc1
MB-8903: Update according to transport spec changes

The Mutation and Deletion command now include an nmeta
field. Currentlty it is expected to be 0, hence no
additional meta information is attached.

Change-Id: I5d2901ad6ad451802fd4e8a8facec95154a73790
MB-8903: Throw when failover log is too large

Change-Id: I2b294c2ab8b80d5fdd2216b3054e981beb7f13f3