Context *on_complete) = 0;
virtual bool scrub_supported() { return false; }
- virtual void be_scan_list(ScrubMap &map, vector<hobject_t> &ls, bool deep,
+ virtual void be_scan_list(ScrubMap &map, const vector<hobject_t> &ls, bool deep,
ThreadPool::TPHandle &handle) { assert(0); }
virtual enum scrub_error_type be_compare_scrub_objects(
ScrubMap::object &auth,
* pg lock may or may not be held
*/
void ReplicatedBackend::be_scan_list(
- ScrubMap &map, vector<hobject_t> &ls, bool deep,
+ ScrubMap &map, const vector<hobject_t> &ls, bool deep,
ThreadPool::TPHandle &handle)
{
dout(10) << "_scan_list scanning " << ls.size() << " objects"
<< (deep ? " deeply" : "") << dendl;
int i = 0;
- for (vector<hobject_t>::iterator p = ls.begin();
+ for (vector<hobject_t>::const_iterator p = ls.begin();
p != ls.end();
++p, i++) {
handle.reset_tp_timeout();
void sub_op_modify_applied(RepModifyRef rm);
void sub_op_modify_commit(RepModifyRef rm);
bool scrub_supported() { return true; }
- void be_scan_list(ScrubMap &map, vector<hobject_t> &ls, bool deep,
+ void be_scan_list(ScrubMap &map, const vector<hobject_t> &ls, bool deep,
ThreadPool::TPHandle &handle);
enum scrub_error_type be_compare_scrub_objects(
ScrubMap::object &auth,