return;
}
int pg_num = pool->get_pg_num();
+ bool sort_bitwise = osdmap->test_flag(CEPH_OSDMAP_SORTBITWISE);
rl.unlock();
if (list_context->starting_pg_num == 0) { // there can't be zero pgs!
list_context->starting_pg_num = pg_num;
- list_context->sort_bitwise = osdmap->test_flag(CEPH_OSDMAP_SORTBITWISE);
+ list_context->sort_bitwise = sort_bitwise;
ldout(cct, 20) << pg_num << " placement groups" << dendl;
}
- if (list_context->sort_bitwise !=
- osdmap->test_flag(CEPH_OSDMAP_SORTBITWISE)) {
+ if (list_context->sort_bitwise != sort_bitwise) {
ldout(cct, 10) << " hobject sort order changed, restarting this pg"
<< dendl;
list_context->cookie = collection_list_handle_t();
- list_context->sort_bitwise = osdmap->test_flag(CEPH_OSDMAP_SORTBITWISE);
+ list_context->sort_bitwise = sort_bitwise;
}
if (list_context->starting_pg_num != pg_num) {
// start reading from the beginning; the pgs have changed
return;
}
int pg_num = pool->get_pg_num();
+ bool sort_bitwise = osdmap->test_flag(CEPH_OSDMAP_SORTBITWISE);
rl.unlock();
if (list_context->starting_pg_num == 0) { // there can't be zero pgs!
list_context->starting_pg_num = pg_num;
- list_context->sort_bitwise = osdmap->test_flag(CEPH_OSDMAP_SORTBITWISE);
+ list_context->sort_bitwise = sort_bitwise;
ldout(cct, 20) << pg_num << " placement groups" << dendl;
}
- if (list_context->sort_bitwise !=
- osdmap->test_flag(CEPH_OSDMAP_SORTBITWISE)) {
+ if (list_context->sort_bitwise != sort_bitwise) {
ldout(cct, 10) << " hobject sort order changed, restarting this pg"
<< dendl;
list_context->cookie = collection_list_handle_t();
- list_context->sort_bitwise = osdmap->test_flag(CEPH_OSDMAP_SORTBITWISE);
+ list_context->sort_bitwise = sort_bitwise;
}
if (list_context->starting_pg_num != pg_num) {
// start reading from the beginning; the pgs have changed