]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journal-file: also show field hash table size in debug output
authorLennart Poettering <lennart@poettering.net>
Fri, 29 May 2020 23:29:37 +0000 (01:29 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 25 Jun 2020 13:01:17 +0000 (15:01 +0200)
src/journal/journal-file.c

index f6b7c660945a860c24875c426adef3fcc8e512e1..af423da2492e0a4a588fbcdba88b758158057ab8 100644 (file)
@@ -1078,7 +1078,7 @@ static int journal_file_setup_data_hash_table(JournalFile *f) {
         if (s < DEFAULT_DATA_HASH_TABLE_SIZE)
                 s = DEFAULT_DATA_HASH_TABLE_SIZE;
 
-        log_debug("Reserving %"PRIu64" entries in hash table.", s / sizeof(HashItem));
+        log_debug("Reserving %"PRIu64" entries in data hash table.", s / sizeof(HashItem));
 
         r = journal_file_append_object(f,
                                        OBJECT_DATA_HASH_TABLE,
@@ -1107,6 +1107,8 @@ static int journal_file_setup_field_hash_table(JournalFile *f) {
          * number should grow very slowly only */
 
         s = DEFAULT_FIELD_HASH_TABLE_SIZE;
+        log_debug("Reserving %"PRIu64" entries in field hash table.", s / sizeof(HashItem));
+
         r = journal_file_append_object(f,
                                        OBJECT_FIELD_HASH_TABLE,
                                        offsetof(Object, hash_table.items) + s,