]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
key_value_store/cls_kvs.cc: prefer prefix --operator for iterators
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 14 Mar 2013 13:12:36 +0000 (14:12 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 14 Mar 2013 18:18:04 +0000 (19:18 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/key_value_store/cls_kvs.cc

index 21c6ee6d96b5f94de28fe5b77b539551abe949a8..ab3095fe76362905aefa400ea5d3f22c0945d902 100644 (file)
@@ -182,7 +182,7 @@ static int get_prev_idata(cls_method_context_t hctx, const index_data &idata,
     //it is the first object, there is no previous.
     return -ERANGE;
   } else {
-    it--;
+    --it;
   }
   out_data.kdata.parse(it->first);
   bufferlist::iterator b = it->second.begin();