Merge pull request #11490 from xiexingguo/xxg-wip-bluestore-1014

os/bluestore: use iterator for erase() method directly

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
This commit is contained in:
Igor Fedotov 2016-10-14 17:01:58 +03:00 committed by GitHub
commit d04eee8795

View File

@ -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: