MB-9124: Don't let CheckpointManager move cursors internally
MB-9124: Don't let CheckpointManager move cursors internally

When removing unreference checkpoints and when adding a new
checkpoint the CheckpointManager attempts to move cursors if they
are at the end of the open checkpoint. This case should be rare
should not make much difference in terms of performance. The
removing checkpoint cursors case would have a potential to make a
difference, but it appears that the current code will not actually
do anything since it doesn't take into account the fact that there
is a checkpoint end message that was recently inserted into the
checkpoint. As a result the cursors will never move to the new
open checkpoint. The other place we do this is when adding a new
checkpoint and in that case we only try to move the persistence
cursor. I don't see a benefit here since we will not be removing
any checkpoints at that time and we can just wait for the
persistence cursor to grab the items.

This change will also simplify tracking which items have been
persisted because we will only have one place in the code that can
actually move the cursors forward and that will only happen when
someone grabs items from the checkpoints.

The new UPR changes to the CheckpointManager will also render this
optimization obsolete because we will not allow cursors to be in
open checkpoints.

Change-Id: I1137997a81ee502857fc0517b29cabfe1a1a92c9
Reviewed-on: http://review.couchbase.org/29224
Reviewed-by: Chiyoung Seo <fcffc23db27b19ee4ebba46695ee6b50e09216a2@couchbase.com>
Tested-by: Michael Wiederhold <a17fed27eaa842282862ff7c1b9c8395a26ac320@couchbase.com>

teligent-ru/ep-engine,hisundar/ep-engine,couchbase/ep-engine,jimwwalker/ep-engine,sriganes/ep-engine,membase/ep-engine,daverigby/kv_engine,teligent-ru/ep-engine,membase/ep-engine,couchbase/ep-engine,membase/ep-engine,hisundar/ep-engine,daverigby/kv_engine,couchbase/ep-engine,daverigby/ep-engine,membase/ep-engine,sriganes/ep-engine,jimwwalker/ep-engine,hisundar/ep-engine,owendCB/ep-engine,teligent-ru/ep-engine,jimwwalker/ep-engine,daverigby/kv_engine,owendCB/ep-engine,hisundar/ep-engine,owendCB/ep-engine,couchbase/ep-engine,jimwwalker/ep-engine,sriganes/ep-engine,daverigby/ep-engine,teligent-ru/ep-engine,owendCB/ep-engine,daverigby/kv_engine,daverigby/ep-engine,sriganes/ep-engine,daverigby/ep-engine