@@ -4606,6 +4606,11 @@ void BlueStore::_txc_state_proc(TransContext *txc)
(txc->first_collection)->lock.get_read();
}
for (auto& o : txc->onodes) {
+ {
+ std::lock_guard<std::mutex> l(o->flush_lock);
+ o->flush_txns.insert(txc);
+ }
+
for (auto& p : o->blob_map.blob_map) {
p.bc.finish_write(txc->seq);
}
@@ -4733,8 +4738,8 @@ void BlueStore::_txc_write_nodes(TransContext *txc, KeyValueDB::Transaction t)
dout(20) << " onode " << (*p)->oid << " is " << bl.length() << dendl;
t->set(PREFIX_OBJ, (*p)->key, bl);
- std::lock_guard<std::mutex> l((*p)->flush_lock);
- (*p)->flush_txns.insert(txc);
+ /*std::lock_guard<std::mutex> l((*p)->flush_lock);
+ (*p)->flush_txns.insert(txc);*/
}