//typedef boost::intrusive_ptr<PG> PGRef;
for (list<PGRef>::iterator i = to_remove.begin();
i != to_remove.end();
to_remove.erase(i++)) {
RWLock::WLocker locker(pg_map_lock);
(*i)->lock();
_remove_pg(&**i);//OSD::_remove_pg(PG *pg)
(*i)->unlock();
}
ceph源码片段——boost::intrusive_ptr
猜你喜欢
转载自my.oschina.net/itfanr/blog/1802608
今日推荐
周排行