MB-20852 [4/N]: Use named struct when moving cursors between checkpoints 14/69014/7
authorDave Rigby <daver@couchbase.com>
Tue, 11 Oct 2016 12:33:38 +0000 (13:33 +0100)
committerDave Rigby <daver@couchbase.com>
Mon, 31 Oct 2016 15:24:19 +0000 (15:24 +0000)
commit5480f21d0f2c33c490e503a5e80c700c542fc1e0
treeccb1972a9455b10958e134593a182c9a511b928b
parent0c9ab4f694c4298ba4e4ba0820e0ac9148b1f22a
MB-20852 [4/N]: Use named struct when moving cursors between checkpoints

Instead of an anonymous std::pair (which is hard to follow what the
two fields are), use a named struct `CursorPosition` and related
CursorIdToPositionMap map when recording cursor positions to move
between checkpoints.

Change-Id: I39d14dbdae34cd20fe880e23b95d01c5fbfdac91
Reviewed-on: http://review.couchbase.org/69014
Reviewed-by: Jim Walker <jim@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: buildbot <build@couchbase.com>
src/checkpoint.cc
src/checkpoint.h