Update .gitignore to exclude cbcompact wrapper

Change-Id: I3e726f29c76ed0df9c478b8a92d4f1e8a06b35f2
Reviewed-on: http://review.couchbase.org/30161
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: Chiyoung Seo <chiyoung@couchbase.com>
CBD-1039:Purge Expired Items in disk via compactor

With the compactor moved into ep-engine, this commit
adds a new way of purging expired items from disk
When compacting items, we examine if they have expired, if
so, place these items into the appropriate queues to handle
their deletions

Improved unit test for better code coverage

Change-Id: I3b611597a5f0e69ab44237346c2214d67b7fff1c
Reviewed-on: http://review.couchbase.org/29781
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: Chiyoung Seo <chiyoung@couchbase.com>
MB-9495: Notify all threads when new task arrives

Since we do not have reliable posting mechanism on some
platforms, it is possible that certain tasks end up waiting
for over 2 seconds before being served by threads.
To avoid this post all threads when tasks arrive.
This fix reduces the bg fetch latency by over 90 %
Change-Id: I7ce6f1556d8c08d0c0450aae16967437edb97d72
Reviewed-on: http://review.couchbase.org/30160
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: Chiyoung Seo <chiyoung@couchbase.com>
MB-9495: notify threads on task wake to avoid loss

To avoid a lost post from the pthread's signal routine
notify all threads on a task wake

This change benefits not only bg fetch task but also flusher

Change-Id: I1ad37d11dc9b256bd4b88a1b6860fbf10d22cfcf
Reviewed-on: http://review.couchbase.org/30196
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: Chiyoung Seo <chiyoung@couchbase.com>
MB-9499: sync up ns-server ht_size in prime table

ns-server initializes hash table with 3079 which is a prime
closest value in ep-engine's prime table is 3067 which causes
an unnecessary resize operation which can be avoided.

Change-Id: I66d3d2fb2cb9bf6888c745a4bdc1d419ff791e2e
Reviewed-on: http://review.couchbase.org/30197
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: Chiyoung Seo <chiyoung@couchbase.com>
Minor formatting and Remove unused unlocked_restoreItem()

Change-Id: I00f1e7a238176d9983290905b091ebb53177fc4c
Reviewed-on: http://review.couchbase.org/29153
Reviewed-by: Sundararaman Sridharan <sundar.sridharan@gmail.com>
Tested-by: Sundararaman Sridharan <sundar.sridharan@gmail.com>
Remove unused mutex instance.

Change-Id: I90e33818b79355e47343f5134b93575a1a5aa75c
Reviewed-on: http://review.couchbase.org/29154
Reviewed-by: Sundararaman Sridharan <sundar.sridharan@gmail.com>
Tested-by: Sundararaman Sridharan <sundar.sridharan@gmail.com>
MB-8988: Sequence numbers are assigned through the CheckpointManager

Change-Id: If3fdf08e1091ad36ea8bcd30b10cd3803db009ae
UPR consumer add_stream command.

Change-Id: I40332293a9ae5df0c366297041b4d8d3fa871668
WIP

Change-Id: Iaae0acf005bb568b263b67f04b33ad9b74a9131e