Signed-off-by: Samuel Just <sjust@redhat.com>
plan.invalidates_cache = true;
}
- if (i.second.is_delete()) {
+ if (i.second.deletes_first()) {
ldpp_dout(dpp, 20) << __func__ << ": delete, setting projected size"
<< " to 0" << dendl;
projected_size = 0;
* ECBackend transaction planning needs this context
* to figure out how to perform the transaction.
*/
+ bool deletes_first() const {
+ return delete_first;
+ }
bool is_delete() const {
return boost::get<Init::None>(&init_type) != nullptr && delete_first;
}