Address review comments. 15093-move-collection-update-out-of-band
authorWard Vandewege <wvandewege@veritasgenetics.com>
Fri, 31 May 2019 19:27:38 +0000 (15:27 -0400)
committerWard Vandewege <wvandewege@veritasgenetics.com>
Fri, 31 May 2019 19:27:38 +0000 (15:27 -0400)
refs #15093

Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <wvandewege@veritasgenetics.com>

services/api/script/populate-file-info-columns-in-collections.rb

index b0bc5a21a095ed496189c33aa4b270aa54f3e4ed..f7cb024b266a048d5cc1b60db2234242001eab95 100755 (executable)
@@ -70,7 +70,7 @@ require "group_pdhs"
 def main
 
   distinct_pdh_count = ActiveRecord::Base.connection.exec_query(
-    "SELECT DISTINCT portable_data_hash FROM collections"
+    "SELECT DISTINCT portable_data_hash FROM collections where file_count=0"
   ).rows.count
 
   # Generator that queries for all the distinct pdhs greater than last_pdh