MB-16656: Send snapshotEnd as highSeqno for replica vb in GET_ALL_VB_SEQNOS call 89/62889/5 v3.1.5
authorManu Dhundi <manu@couchbase.com>
Fri, 15 Apr 2016 15:38:44 +0000 (08:38 -0700)
committerManu Dhundi <manu@couchbase.com>
Fri, 15 Apr 2016 16:50:27 +0000 (16:50 +0000)
commit6f7bfa3de30c21275687985a3ee6bcf92053f741
tree231eb69b1c64193d78161018cba98364a3953e1c
parent3bd9fa40f9cc597ffc6b4f9743c75bf4f8f6e4d6
MB-16656: Send snapshotEnd as highSeqno for replica vb in GET_ALL_VB_SEQNOS call

For replica vbucket we must send snapshotEnd received in the last snapshotMarker
as the high seqno. Sending lastClosedChkSeqno can cause problems for view engine
which builds an index from replica vbucket.

Previously this was sent correctly in seqno stats, now adding it for
GET_ALL_VB_SEQNOS as well.

Change-Id: I58dd168f9248263172759616bc53e751b536e5e3
Reviewed-on: http://review.couchbase.org/62889
Well-Formed: buildbot <build@couchbase.com>
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
src/ep_engine.cc
tests/ep_test_apis.cc
tests/ep_test_apis.h
tests/ep_testsuite.cc