]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: remove a never read value
authorliuchang0812 <liuchang0812@gmail.com>
Thu, 22 Dec 2016 08:17:55 +0000 (16:17 +0800)
committerliuchang0812 <liuchang0812@gmail.com>
Thu, 22 Dec 2016 08:18:10 +0000 (16:18 +0800)
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
src/os/bluestore/BlueStore.cc

index f96eb7bd25f0ea3ae1799961f0213da1444b4886..e05f2d856c19128a5d893aeb314dea5a40c99963 100644 (file)
@@ -4519,9 +4519,8 @@ int BlueStore::fsck(bool deep)
   if (it) {
     for (it->lower_bound(string()); it->valid(); it->next()) {
       string key = it->key();
-      const char *p = key.c_str();
       uint64_t omap_head;
-      p = _key_decode_u64(p, &omap_head);
+      _key_decode_u64(key.c_str(), &omap_head);
       if (used_omap_head.count(omap_head) == 0) {
        derr << __func__ << " found stray omap data on omap_head " << omap_head
             << dendl;