Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os/bluestore: fix compiler warnings #11905

Merged
merged 1 commit into from Nov 11, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/os/bluestore/BlueStore.cc
Expand Up @@ -1776,7 +1776,7 @@ void BlueStore::ExtentMap::reshard(Onode *o, uint64_t min_alloc_size)
bool BlueStore::ExtentMap::encode_some(uint32_t offset, uint32_t length,
bufferlist& bl, unsigned *pn)
{
Extent dummy(offset);
dummy.logical_offset = offset;
auto start = extent_map.lower_bound(dummy);
uint32_t end = offset + length;

Expand Down Expand Up @@ -2066,7 +2066,7 @@ void BlueStore::ExtentMap::dirty_range(
BlueStore::extent_map_t::iterator BlueStore::ExtentMap::find(
uint64_t offset)
{
Extent dummy(offset);
dummy.logical_offset = offset;
return extent_map.find(dummy);
}

Expand All @@ -2082,7 +2082,7 @@ BlueStore::extent_map_t::iterator BlueStore::ExtentMap::find_lextent(
BlueStore::extent_map_t::iterator BlueStore::ExtentMap::seek_lextent(
uint64_t offset)
{
Extent dummy(offset);
dummy.logical_offset = offset;
auto fp = extent_map.lower_bound(dummy);
if (fp != extent_map.begin()) {
--fp;
Expand Down
1 change: 1 addition & 0 deletions src/os/bluestore/BlueStore.h
Expand Up @@ -606,6 +606,7 @@ class BlueStore : public ObjectStore,
struct ExtentMap {
Onode *onode;
extent_map_t extent_map; ///< map of Extents to Blobs
Extent dummy; ///< dummy extent for lookups
blob_map_t spanning_blob_map; ///< blobs that span shards

struct Shard {
Expand Down