Project

General

Profile

libradosstriper_empty_rm.patch

Stan K, 06/15/2017 11:43 PM

Download (709 Bytes)

View differences:

src/libradosstriper/RadosStriperImpl.cc
600 604
      uint64_t remaining_objects = std::min(remaining_stripe_units, stripe_count);
601 605
      nb_objects = nb_complete_sets * stripe_count + remaining_objects;
602 606
    }
607
    // We cannot have 0 objects, at least one is present
608
    if (nb_objects == 0)
609
        nb_objects++;
610

  
603 611
    // delete rados objects in reverse order
604 612
    int rcr = 0;
605 613
    for (int i = nb_objects-1; i >= 0; i--) {