Modified TransContext.
Changed
std::set<SharedBlobRef> shared_blobs_written
to
std::set<BlobRef> blobs_written
Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
dout(20) << __func__ << " " << txc << " onodes " << txc->onodes << dendl;
ceph_assert(txc->get_state() == TransContext::STATE_FINISHING);
- for (auto& sb : txc->shared_blobs_written) {
- sb->finish_write(txc->seq);
+ for (auto& sb : txc->blobs_written) {
+ sb->shared_blob->finish_write(txc->seq);
}
- txc->shared_blobs_written.clear();
+ txc->blobs_written.clear();
while (!txc->removed_collections.empty()) {
_queue_reap_collection(txc->removed_collections.front());
#endif
std::set<SharedBlobRef> shared_blobs; ///< these need to be updated/written
- std::set<SharedBlobRef> shared_blobs_written; ///< update these on io completion
+ std::set<BlobRef> blobs_written; ///< update these on io completion
KeyValueDB::Transaction t; ///< then we will commit this
std::list<Context*> oncommits; ///< more commit completions
unsigned flags) {
b->shared_blob->bc.write(b->shared_blob->get_cache(), txc->seq, offset, bl,
flags);
- txc->shared_blobs_written.insert(b->shared_blob);
+ txc->blobs_written.insert(b);
}
int _collection_list(