out->insert(op.source);
out->insert(op.destination);
}
- void operator()(const ECTransaction::StashOp &op) {}
- void operator()(const ECTransaction::RemoveOp &op) {}
+ void operator()(const ECTransaction::StashOp &op) {
+ out->insert(op.oid);
+ }
+ void operator()(const ECTransaction::RemoveOp &op) {
+ out->insert(op.oid);
+ }
void operator()(const ECTransaction::SetAttrsOp &op) {}
void operator()(const ECTransaction::RmAttrOp &op) {}
void operator()(const ECTransaction::NoOp &op) {}
}
}
void operator()(const ECTransaction::StashOp &op) {
- if (hash_infos.count(op.oid))
- hash_infos[op.oid]->clear();
+ assert(hash_infos.count(op.oid));
+ hash_infos[op.oid]->clear();
for (map<shard_id_t, ObjectStore::Transaction>::iterator i = trans->begin();
i != trans->end();
++i) {
}
}
void operator()(const ECTransaction::RemoveOp &op) {
- if (hash_infos.count(op.oid))
- hash_infos[op.oid]->clear();
+ assert(hash_infos.count(op.oid));
+ hash_infos[op.oid]->clear();
for (map<shard_id_t, ObjectStore::Transaction>::iterator i = trans->begin();
i != trans->end();
++i) {