diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 0db854a18fd..d72b876eaf9 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -8128,7 +8128,7 @@ int BlueStore::_rmattr(TransContext *txc, if (it == o->onode.attrs.end()) goto out; - o->onode.attrs.erase(name); + o->onode.attrs.erase(it); txc->write_onode(o); out: