Skip to content

Commit

Permalink
removed possible deadlock, see
Browse files Browse the repository at this point in the history
  • Loading branch information
orbiter committed Aug 7, 2009
1 parent 5cc17cc commit 6354b5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/de/anomic/kelondro/text/MetadataRepository.java
Expand Up @@ -118,7 +118,8 @@ public synchronized void store(final URLMetadataRow entry) throws IOException {
URLMetadataRow oldEntry;
try {
if (exists(entry.hash())) {
oldEntry = load(entry.hash(), null, 0);
Row.Entry oe = urlIndexFile.get(entry.hash().getBytes());
oldEntry = (oe == null) ? null : new URLMetadataRow(oe, null, 0);
} else {
oldEntry = null;
}
Expand Down

0 comments on commit 6354b5e

Please sign in to comment.