Skip to content

Commit

Permalink
Merge remote-tracking branch 'gh/kraken'
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/os/bluestore/BlueStore.cc
  • Loading branch information
liewegas committed Dec 22, 2016
2 parents 566ad2d + ba5b81e commit 926d27f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/common/config_opts.h
Expand Up @@ -987,7 +987,7 @@ OPTION(bluefs_min_flush_size, OPT_U64, 65536) // ignore flush until its this bi
OPTION(bluefs_compact_log_sync, OPT_BOOL, false) // sync or async log compaction?
OPTION(bluefs_buffered_io, OPT_BOOL, false)
OPTION(bluefs_allocator, OPT_STR, "bitmap") // stupid | bitmap
OPTION(bluefs_preextend_wal_files, OPT_BOOL, true) // this *requires* that rocksdb has recycling enabled
OPTION(bluefs_preextend_wal_files, OPT_BOOL, false) // this *requires* that rocksdb has recycling enabled

OPTION(bluestore_bluefs, OPT_BOOL, true)
OPTION(bluestore_bluefs_env_mirror, OPT_BOOL, false) // mirror to normal Env for debug
Expand Down
1 change: 0 additions & 1 deletion src/os/bluestore/BlueStore.cc
Expand Up @@ -1681,7 +1681,6 @@ bool BlueStore::ExtentMap::update(KeyValueDB::Transaction t,
}
assert(p->shard_info->offset == p->offset);
p->shard_info->bytes = len;
p->shard_info->extents = nn;

encoded_shards[pos].key = &p->key;
dirty_shards.push_back(encoded_shards[pos]);
Expand Down
5 changes: 2 additions & 3 deletions src/os/bluestore/bluestore_types.cc
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions src/os/bluestore/bluestore_types.h
Expand Up @@ -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;
};
Expand Down

0 comments on commit 926d27f

Please sign in to comment.