]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cls_kvs.cc: return 'r' from get_idata_from_key()
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sun, 11 May 2014 09:55:28 +0000 (11:55 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sun, 11 May 2014 09:55:28 +0000 (11:55 +0200)
Fix for:

69  r = 0;
    Value stored to 'r' is never read

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/key_value_store/cls_kvs.cc

index 06266127dcc99b8143b5d3ba45cc5d8a780a366a..841f56fa833c979fb040f472b3945691736845f1 100644 (file)
@@ -73,7 +73,7 @@ static int get_idata_from_key(cls_method_context_t hctx, const string &key,
   }
 
   CLS_LOG(20, "idata is %s", idata.str().c_str());
-  return 0;
+  return r;
 }