chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8144056
)
journal: correct list link up on hash collisions
author
Lennart Poettering
<lennart@poettering.net>
Sat, 9 Jun 2012 08:30:44 +0000
(10:30 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Sat, 16 Jun 2012 22:03:12 +0000
(
00:03
+0200)
src/journal/journal-file.c
patch
|
blob
|
history
diff --git
a/src/journal/journal-file.c
b/src/journal/journal-file.c
index 8f301b87f9c62d1ddd4c8e676bf07d3429db8e44..9cec140f58032a158bffa76cb3468efd15a73e33 100644
(file)
--- 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);