From 3f285d4c2555aa57e9b64c9890bbb494cdf46a0f Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Mon, 8 May 2017 14:17:16 -0400 Subject: [PATCH] 11629: Fix items_available in groups#contents response. --- services/api/app/controllers/arvados/v1/groups_controller.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/api/app/controllers/arvados/v1/groups_controller.rb b/services/api/app/controllers/arvados/v1/groups_controller.rb index 7b0c0f0037..3bf91c38e4 100644 --- a/services/api/app/controllers/arvados/v1/groups_controller.rb +++ b/services/api/app/controllers/arvados/v1/groups_controller.rb @@ -149,8 +149,9 @@ class Arvados::V1::GroupsController < ApplicationController if klass_object_list[:limit] < klass_limit # object_list() had to reduce @limit to comply with - # max_index_database_read. We have to stop now. - break + # max_index_database_read. From now on, we'll do all queries + # with limit=0 and just accumulate items_available. + limit_all = all_objects.count end end -- 2.30.2