Skip to content
Snippets Groups Projects
Commit 15bffeed authored by Thomas Lopatic's avatar Thomas Lopatic
Browse files

Put the acknowledgements into a "finally".

parent a19ef10c
No related branches found
No related tags found
No related merge requests found
...@@ -760,10 +760,13 @@ public class CoreWorkload extends Workload ...@@ -760,10 +760,13 @@ public class CoreWorkload extends Workload
//choose the next key //choose the next key
int keynum=transactioninsertkeysequence.nextInt(); int keynum=transactioninsertkeysequence.nextInt();
String dbkey = buildKeyName(keynum); try {
String dbkey = buildKeyName(keynum);
HashMap<String, ByteIterator> values = buildValues(dbkey); HashMap<String, ByteIterator> values = buildValues(dbkey);
db.insert(table,dbkey,values); db.insert(table,dbkey,values);
transactioninsertkeysequence.acknowledge(keynum); } finally {
transactioninsertkeysequence.acknowledge(keynum);
}
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment