From: Lennart Poettering Date: Fri, 29 May 2020 23:29:37 +0000 (+0200) Subject: journal-file: also show field hash table size in debug output X-Git-Tag: v246-rc1~84^2~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5030c85a3e6c5547bac874ac0e511bfb7121b59f;p=thirdparty%2Fsystemd.git journal-file: also show field hash table size in debug output --- diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index f6b7c660945..af423da2492 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -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,