Skip to content

Commit

Permalink
Merge pull request ceph#12871 from xiexingguo/xxg-wip-bluestore-20170111
Browse files Browse the repository at this point in the history
os/bluestore: kill BufferSpace.empty()

Reviewed-by: Sage Weil <[email protected]>
  • Loading branch information
liewegas authored Jan 11, 2017
2 parents 2945bf1 + 985514b commit ab9d375
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
10 changes: 4 additions & 6 deletions src/os/bluestore/BlueStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7514,12 +7514,10 @@ void BlueStore::_dump_extent_map(ExtentMap &em, int log_level)
<< dendl;
}
std::lock_guard<std::recursive_mutex> l(e.blob->shared_blob->bc.cache->lock);
if (!e.blob->shared_blob->bc.empty()) {
for (auto& i : e.blob->shared_blob->bc.buffer_map) {
dout(log_level) << __func__ << " 0x" << std::hex << i.first
<< "~" << i.second->length << std::dec
<< " " << *i.second << dendl;
}
for (auto& i : e.blob->shared_blob->bc.buffer_map) {
dout(log_level) << __func__ << " 0x" << std::hex << i.first
<< "~" << i.second->length << std::dec
<< " " << *i.second << dendl;
}
}
}
Expand Down
4 changes: 0 additions & 4 deletions src/os/bluestore/BlueStore.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,6 @@ class BlueStore : public ObjectStore,
return i;
}

bool empty() const {
return buffer_map.empty();
}

// must be called under protection of the Cache lock
void _clear();

Expand Down

0 comments on commit ab9d375

Please sign in to comment.