MB-21568: Use signed int64 when comparing against item bySeqno 24/70024/2
authorJim Walker <jim@couchbase.com>
Thu, 17 Nov 2016 16:49:19 +0000 (16:49 +0000)
committerDave Rigby <daver@couchbase.com>
Thu, 17 Nov 2016 17:31:34 +0000 (17:31 +0000)
addresses compiler warning

Change-Id: I63ae0f15baf6512679ca32491b707500309b09e9
Reviewed-on: http://review.couchbase.org/70024
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Dave Rigby <daver@couchbase.com>
src/ep.cc
src/ep.h

index 7429aeb..d602dc4 100644 (file)
--- a/src/ep.cc
+++ b/src/ep.cc
@@ -3963,7 +3963,7 @@ private:
  * the hashtable for any that are > the rollbackSeqno.
  */
 void EventuallyPersistentStore::rollbackCheckpoint(RCPtr<VBucket> &vb,
-                                                   uint64_t rollbackSeqno) {
+                                                   int64_t rollbackSeqno) {
     std::vector<queued_item> items;
     vb->checkpointManager.getAllItemsForCursor(CheckpointManager::pCursorName,
                                                items);
index b78053d..e2dbf94 100644 (file)
--- a/src/ep.h
+++ b/src/ep.h
@@ -1016,7 +1016,7 @@ protected:
      * Drain the VB's checkpoints looking for items which have a seqno
      * above the rollbackSeqno and must be rolled back themselves.
      */
-    void rollbackCheckpoint(RCPtr<VBucket> &vb, uint64_t rollbackSeqno);
+    void rollbackCheckpoint(RCPtr<VBucket> &vb, int64_t rollbackSeqno);
 
     friend class Warmup;
     friend class Flusher;