]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: remove 'extents' from shard_info 12629/head
authorSage Weil <sage@redhat.com>
Thu, 22 Dec 2016 16:03:51 +0000 (11:03 -0500)
committerSage Weil <sage@redhat.com>
Thu, 22 Dec 2016 16:03:51 +0000 (11:03 -0500)
We don't use this field; no need to consume the space
on disk.

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.cc
src/os/bluestore/bluestore_types.cc
src/os/bluestore/bluestore_types.h

index a97205010223ce0ac0bdadad6b706a5a092d736d..2ca7882085dbd122abc1fb1ba8802442a256793a 100644 (file)
@@ -1661,7 +1661,6 @@ bool BlueStore::ExtentMap::update(Onode *o, KeyValueDB::Transaction t,
         }
        assert(p->shard_info->offset == p->offset);
        p->shard_info->bytes = len;
-       p->shard_info->extents = nn;
        t->set(PREFIX_OBJ, p->key, bl);
        p->dirty = false;
       }
index 01630cbc1df87a7e7d2a371a0c7ba47d86e376b2..36bcedbfd7fb622e937d19bc2369ad50ced23c66 100644 (file)
@@ -546,13 +546,12 @@ void bluestore_onode_t::shard_info::dump(Formatter *f) const
 {
   f->dump_unsigned("offset", offset);
   f->dump_unsigned("bytes", bytes);
-  f->dump_unsigned("extents", extents);
 }
 
 ostream& operator<<(ostream& out, const bluestore_onode_t::shard_info& si)
 {
-  return out << std::hex << "0x" << si.offset << "(0x" << si.bytes << " bytes"
-            << std::dec << si.extents << " extents)";
+  return out << std::hex << "0x" << si.offset << "(0x" << si.bytes << " bytes"
+            << std::dec << ")";
 }
 
 void bluestore_onode_t::dump(Formatter *f) const
index 2e684791bf511544a965245c271f8390a6d0ad96..20cda85d052893a03f467bb0a0005f3503e4eb9d 100644 (file)
@@ -673,11 +673,9 @@ struct bluestore_onode_t {
   struct shard_info {
     uint32_t offset = 0;  ///< logical offset for start of shard
     uint32_t bytes = 0;   ///< encoded bytes
-    uint32_t extents = 0; ///< extents
     DENC(shard_info, v, p) {
       denc_varint(v.offset, p);
       denc_varint(v.bytes, p);
-      denc_varint(v.extents, p);
     }
     void dump(Formatter *f) const;
   };