MB-9147: lseek can return 0 if the file has no length

This will avoid asserting incorrectly.

Change-Id: Ibca0d69782f753e0dbb16652d5591a21e514c9f9
Reviewed-on: http://review.couchbase.org/29048
Reviewed-by: Chiyoung Seo <chiyoung.seo@gmail.com>
Tested-by: Chiyoung Seo <chiyoung.seo@gmail.com>
Fix compile warnings

don't initialize hrtime_t with NULL and add () to group
expression.

Change-Id: I4a09a38b8af387895f0b1e71d2f5f186430ca109
Reviewed-on: http://review.couchbase.org/29067
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Chiyoung Seo <chiyoung.seo@gmail.com>
Tested-by: Chiyoung Seo <chiyoung.seo@gmail.com>
Ignore test files from automake

Change-Id: I610f214ef9a6c5f85d15ab96324ab14102b39875
Reviewed-on: http://review.couchbase.org/29071
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Chiyoung Seo <chiyoung.seo@gmail.com>
Tested-by: Chiyoung Seo <chiyoung.seo@gmail.com>
MB-100: Remove unused cursorExists function

Change-Id: Id66c5c3b9166b2ec64c3b466d8bf268bd7c41831
MB-9124: Move persistence cursor to tapCursors list

Change-Id: I0f357ad2848f90270a6913b4bebb30ad8dbe163c
MB-9124: Cleanup 1

Change-Id: I94aa5d6aa6f3b01abf852427bbe70a2ecf5f3b16
MB-9124: Cleanup 2

Change-Id: I8c06a4df8e044a55dba3b800ae37b962969bbf15
MB-9124: Cleanup 3

Change-Id: I403ad4c185d09845bae5e3b3f731649c6ad14b97
MB-9124: Cleanup 4

Change-Id: I456efe3c9eaed0a0bf832935c4452d180c610ab9
MB-9124: Cleanup 5

Change-Id: I6b0bfabfb9534e24a752bb0b2fead7aed587c874
MB-9124: Change some variable names 1

Change-Id: Ie78cb805913ad1524bc9a65309c4c0e78d81e850
MB-9124: Rename variables 2

Change-Id: I5d83865e8f22e9eab871a637e22e676fb7d08321
MB-9124: Move the persistence cursor creation to registerPersistenceCursor()

Change-Id: I167547792be72fbd81f327a40056f667878fc9e7
MB-9103: Add a persisted cursor

Change-Id: I7b54796fa9b5ec53ebdbc11f7cb48bde2ed7c9f2
MB-9103: Update checkpoint stats to include persisted cursor

Change-Id: Idbba533289ac81187c8c1d9b9b2c4912986c71d6
MB-9103: Insert tap cursor in checkpoint containing persisted cursor

Change-Id: I1869c7b33c70473b0ec97e18b4fd9b474de07227
MB-9103: Backfills are only from disk

This removes the memory backfill that was used when more than 90%
of the items are resident in memory. We cannot use that mechanism
anymore because we need to ensure that items are sent in order of
increasing sequence number.

Change-Id: I6d1e1994ce558d3cba45693d82e7d51c280b0704
MB-9107: Backfill optimization part 1

Change-Id: I51aad158e9bab15cc8fb78f3c140c1d87c224101
MB-9107: Backfill optimization part 2

Change-Id: I4c1c16ff26e32f04e37de4a8dce4d4014f938dd5