summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-06-09 10:30:44 +0200
committerLennart Poettering <lennart@poettering.net>2012-06-17 00:03:12 +0200
commit8db4213e7b38ebc54bfdc7215991cc23b9580e3a (patch)
tree87be2ce46949f69827330a96fccbe6abbd660a53 /src/journal
parent8144056fa63291e5b25d91a48cd77b91e845eabf (diff)
journal: correct list link up on hash collisions
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/journal-file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
index 8f301b87f9..9cec140f58 100644
--- a/src/journal/journal-file.c
+++ b/src/journal/journal-file.c
@@ -596,7 +596,7 @@ static int journal_file_link_data(JournalFile *f, Object *o, uint64_t offset, ui
o->data.n_entries = 0;
h = hash % (le64toh(f->header->data_hash_table_size) / sizeof(HashItem));
- p = le64toh(f->data_hash_table[h].head_hash_offset);
+ p = le64toh(f->data_hash_table[h].tail_hash_offset);
if (p == 0) {
/* Only entry in the hash table is easy */
f->data_hash_table[h].head_hash_offset = htole64(offset);