Users of `FuturizedStore::omap_get_values()` expect to get all the keys
that are currently in the omap, but behind the scenes we were limiting
`CyanStore::omap_get_values()` to return only a hardcoded number of values,
specifically `MAX_KEYS_PER_OMAP_GET_CALL` which is 32.
Signed-off-by: Amnon Hanuhov <AmnonSWE@gmail.com>
}
omap_values_t values;
for (auto i = start ? o->omap.upper_bound(*start) : o->omap.begin();
- values.size() < MAX_KEYS_PER_OMAP_GET_CALL && i != o->omap.end();
+ i != o->omap.end();
++i) {
values.insert(*i);
}
class Collection;
class CyanStore final : public FuturizedStore {
- constexpr static unsigned MAX_KEYS_PER_OMAP_GET_CALL = 32;
-
const std::string path;
std::unordered_map<coll_t, boost::intrusive_ptr<Collection>> coll_map;
std::map<coll_t, boost::intrusive_ptr<Collection>> new_coll_map;