MB-7509: Skip merging checkpoint end items in chk queues

Change-Id: Idd73a04fc0ff8cce774ee956c006b879bfb1fec5
Reviewed-on: http://review.couchbase.org/24675
Reviewed-by: Jin Lim <jin@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
MB-7509 Removed item should be removed from keyIndex too.

Change-Id: I842be6f77606e99ca7b47a451fd5f03e4b95feb6
Reviewed-on: http://review.couchbase.org/24730
Reviewed-by: Jin Lim <jin@couchbase.com>
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: xiaoqin ma <maxiaoqin2005@gmail.com>
MB-7797: Lower bgfetch sleep time for 60s to 1s

Change-Id: I767599bb3d64c085ad406ee75d5d88ebb48effc3
Reviewed-on: http://review.couchbase.org/24842
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Revert "MB-7797: Lower bgfetch sleep time for 60s to 1s"

This reverts commit 62717fadb0f59cf50396908845625a4142b4a44f.

Change-Id: Idc9c18e12bac55be552e4fd32baa5f839dc3b145
Reviewed-on: http://review.couchbase.org/24901
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Revert "MB-7597: adjust the changes for high CPU usage."

This reverts commit eee2e9564ef844cf8cc435911d9e80af0dece244.

Change-Id: Ib30942fbde5287f903e8e7a38877380d7e1511ea
Reviewed-on: http://review.couchbase.org/24902
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Revert "MB-7597: correct the logic of updating bgfetcher global variable"

This reverts commit f6b583f3760cc1e7df85b5bf3abbc2e016a270fc.

Change-Id: Ic959fae6a1bb6cf9a2a382342518510aa9efcc4b
Reviewed-on: http://review.couchbase.org/24903
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Merge remote-tracking branch 'gerrit/2.0.1' into 202

Change-Id: Ic24e7263f72b84d227954d289c08dafe8466b51f