Skip to content

Commit

Permalink
os/bluestore/BlueStore: fix overlay keys
Browse files Browse the repository at this point in the history
Signed-off-by: YiQiang Chen <cyqsign@163.com>
  • Loading branch information
cyqsign authored and liewegas committed Dec 31, 2015
1 parent 4c7d09f commit 4a34a4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/os/bluestore/BlueStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4203,7 +4203,7 @@ int BlueStore::_do_overlay_trim(TransContext *txc,
<< dendl;
if (o->onode.put_overlay_ref(p->second.key)) {
string key;
get_overlay_key(o->onode.nid, p->first, &key);
get_overlay_key(o->onode.nid, p->second.key, &key);
txc->t->rmkey(PREFIX_OVERLAY, key);
}
o->onode.overlay_map.erase(p++);
Expand Down Expand Up @@ -4304,7 +4304,7 @@ int BlueStore::_do_write_overlays(TransContext *txc,

if (o->onode.put_overlay_ref(p->second.key)) {
string key;
get_overlay_key(o->onode.nid, p->first, &key);
get_overlay_key(o->onode.nid, p->second.key, &key);
txc->t->rmkey(PREFIX_OVERLAY, key);
}
o->onode.overlay_map.erase(p++);
Expand All @@ -4322,7 +4322,7 @@ int BlueStore::_do_write_overlays(TransContext *txc,

if (o->onode.put_overlay_ref(p->second.key)) {
string key;
get_overlay_key(o->onode.nid, p->first, &key);
get_overlay_key(o->onode.nid, p->second.key, &key);
txc->t->rmkey(PREFIX_OVERLAY, key);
}
o->onode.overlay_map.erase(p++);
Expand Down

0 comments on commit 4a34a4b

Please sign in to comment.