MB-10875 Fix to a bug in updating the persistence cursor offset.
MB-10875 Fix to a bug in updating the persistence cursor offset.

We should NOT set the persistence cursor offset to be equal to the
number of items including meta items after getting all the dirty
items, as we update the cursor offset while moving the cursor.

Change-Id: Ic80b3153ec7032a8d99d907db0a80e96fd3c5674
Reviewed-on: http://review.couchbase.org/36240
Reviewed-by: abhinav dangeti <d73ef2279de6577f7bf081737ee47554bbb7dc82@couchbase.com>
Tested-by: abhinav dangeti <d73ef2279de6577f7bf081737ee47554bbb7dc82@couchbase.com>

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