| 2680 | } |
| 2681 | |
| 2682 | void GetRangeLimits::decrement(VectorRef<KeyValueRef> const& data) { |
| 2683 | if (rows != GetRangeLimits::ROW_LIMIT_UNLIMITED) { |
| 2684 | ASSERT(data.size() <= rows); |
| 2685 | rows -= data.size(); |
| 2686 | } |
| 2687 | |
| 2688 | minRows = std::max(0, minRows - data.size()); |
| 2689 | |
| 2690 | if (bytes != GetRangeLimits::BYTE_LIMIT_UNLIMITED) |
| 2691 | bytes = std::max(0, bytes - (int)data.expectedSize() - (8 - (int)sizeof(KeyValueRef)) * data.size()); |
| 2692 | } |
| 2693 | |
| 2694 | void GetRangeLimits::decrement(KeyValueRef const& data) { |
| 2695 | minRows = std::max(0, minRows - 1); |