The marker should be served as a lower bound, but should not be
returned.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
map<string, bufferlist> keys;
string filter_prefix, end_key;
- bufferlist start_bl;
- bool start_key_added = false;
uint32_t i = 0;
string key;
key.append(marker);
start_key = key;
- int ret = cls_cxx_map_get_val(hctx, start_key, &start_bl);
- if ((ret < 0) && (ret != -ENOENT)) {
- return ret;
- }
} else {
start_key = key_iter;
}
if (ret < 0)
return ret;
- if ((start_bl.length() > 0) && (!start_key_added)) {
- keys[start_key] = start_bl;
- start_key_added = true;
- }
map<string, bufferlist>::iterator iter = keys.begin();
if (iter == keys.end())
break;