mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-22 01:20:39 +00:00
With this new field comes a new member function called get_page_size. This new function will be used by the result_memory_accounter to decide when to cut a page. The behaviour of get_page_size depends on whether page_size field is set. This is distinguished by page size being equal to 0 or not. When page_size is equal to 0 then it's not set and hard_limit will be returned from get_page_size. Otherwise, get_page_size will return page_size field. When read_command is received from an old node, page_size will be equal to 0 and hard_limit will be used to determine the page size. This is consistent with the behaviour on the old nodes. Signed-off-by: Piotr Jastrzebski <piotr@scylladb.com>