Attic 0.8.1

This commit is contained in:
Jonas Borgström 2013-10-04 22:06:16 +02:00
parent 7e7c725428
commit 9e9ece675d
2 changed files with 7 additions and 1 deletions

View file

@ -3,6 +3,12 @@ Attic Changelog
Here you can see the full list of changes between each Attic release.
Version 0.8.1
-------------
(bugfix release, released on Oct 4, 2013)
- Fix segmentation fault issue.
Version 0.8
-----------

View file

@ -92,7 +92,7 @@ hashindex_lookup(HashIndex *index, const void *key)
}
}
else if(BUCKET_MATCHES_KEY(index, idx, key)) {
if (didx != -1) {
if (didx != -1 && !index->readonly) {
memcpy(BUCKET_ADDR_WRITE(index, didx), BUCKET_ADDR_READ(index, idx), index->bucket_size);
BUCKET_MARK_DELETED(index, idx);
idx = didx;