mirror of
https://github.com/ceph/ceph
synced 2025-01-11 21:50:26 +00:00
osd: one more flush before collection_list
Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
f3325e65ca
commit
82776e155a
@ -802,6 +802,9 @@ bool ReplicatedPG::get_obs_to_trim(snapid_t &snap_to_trim,
|
||||
return true;
|
||||
}
|
||||
|
||||
// flush pg ops to fs so we can rely on collection_list()
|
||||
osr.flush();
|
||||
|
||||
osd->store->collection_list(col_to_trim, obs_to_trim);
|
||||
|
||||
return true;
|
||||
@ -4739,8 +4742,6 @@ void ReplicatedPG::clean_up_local(ObjectStore::Transaction& t)
|
||||
|
||||
if (log.backlog) {
|
||||
|
||||
// FIXME: sloppy pobject vs object conversions abound! ***
|
||||
|
||||
// be thorough.
|
||||
vector<hobject_t> ls;
|
||||
osd->store->collection_list(coll, ls);
|
||||
|
Loading…
Reference in New Issue
Block a user