[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/18: Move log message
From: |
Christopher Baines |
Subject: |
02/18: Move log message |
Date: |
Mon, 16 Dec 2024 04:02:39 -0500 (EST) |
cbaines pushed a commit to branch master
in repository data-service.
commit cb1bc060c808f142bbdc18c4ec4bb8d996d668c8
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Fri Nov 29 10:09:59 2024 +0000
Move log message
---
guix-data-service/jobs/load-new-guix-revision.scm | 36 +++++++++++------------
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/guix-data-service/jobs/load-new-guix-revision.scm
b/guix-data-service/jobs/load-new-guix-revision.scm
index 85e7edd..d5bd431 100644
--- a/guix-data-service/jobs/load-new-guix-revision.scm
+++ b/guix-data-service/jobs/load-new-guix-revision.scm
@@ -1205,29 +1205,29 @@ SELECT 1 FROM derivation_source_file_nars WHERE
derivation_source_file_id = $1"
(if (= 0 derivations-count)
#()
(begin
- (simple-format
- #t "debug: derivation-file-names->derivation-ids: processing ~A
derivations (~A)\n"
- derivations-count
- log-tag)
-
(with-resource-from-pool postgresql-connection-pool conn
- (update-derivation-ids-hash-table!
+ (update-derivation-ids-hash-table!
conn
derivation-ids-hash-table
derivation-file-names))
- (let* ((missing-derivation-filenames
- (deduplicate-strings
- (vector-fold
- (lambda (_ result derivation-file-name)
- (if (not derivation-file-name)
- result
- (if (hash-ref derivation-ids-hash-table
- derivation-file-name)
- result
- (cons derivation-file-name result))))
- '()
- derivation-file-names))))
+ (let ((missing-derivation-filenames
+ (deduplicate-strings
+ (vector-fold
+ (lambda (_ result derivation-file-name)
+ (if (not derivation-file-name)
+ result
+ (if (hash-ref derivation-ids-hash-table
+ derivation-file-name)
+ result
+ (cons derivation-file-name result))))
+ '()
+ derivation-file-names))))
+ (simple-format
+ #t "debug: derivation-file-names->derivation-ids: processing ~A
missing derivations (~A)\n"
+ (length missing-derivation-filenames)
+ log-tag)
+
(let ((chunks (chunk! missing-derivation-filenames 1000)))
(for-each
(lambda (i missing-derivation-file-names-chunk)
- branch master updated (64aeeff -> 62d6b59), Christopher Baines, 2024/12/16
- 10/18: Fix wrong number of values from channel-derivations-by-system->guix-store-item, Christopher Baines, 2024/12/16
- 12/18: Fix hash display for formatted derivations, Christopher Baines, 2024/12/16
- 09/18: Rework loading revision data, Christopher Baines, 2024/12/16
- 06/18: Memoize field-can-be-null?, Christopher Baines, 2024/12/16
- 02/18: Move log message,
Christopher Baines <=
- 15/18: Add a comment, Christopher Baines, 2024/12/16
- 13/18: Avoid getting the load-new-guix-revision-inserts lock twice, Christopher Baines, 2024/12/16
- 04/18: Use insert-missing-data-and-return-all-ids for locations, Christopher Baines, 2024/12/16
- 14/18: Log differently when using the load-new-guix-revision-inserts lock, Christopher Baines, 2024/12/16
- 05/18: Handle conflicts when inserting lint warning message sets, Christopher Baines, 2024/12/16
- 18/18: Make build_servers.id just generated by default, Christopher Baines, 2024/12/16
- 11/18: Improve some query formatting, Christopher Baines, 2024/12/16
- 07/18: Handle conflicts in insert-missing-data-and-return-all-ids, Christopher Baines, 2024/12/16
- 08/18: Improve null handling, Christopher Baines, 2024/12/16
- 03/18: Add in call-with-worker-thread to try to avoid sort problems, Christopher Baines, 2024/12/16