Skip to content
Snippets Groups Projects
Unverified Commit 1833d44c authored by Richard Cordovano's avatar Richard Cordovano Committed by GitHub
Browse files

Merge pull request #1084 from APriestman/3460_writeLock

3460 Add write lock in save()
parents d77a53be 9c8d997e
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,16 @@ release. ...@@ -42,7 +42,16 @@ release.
- LibEWF: Allows you to process disk images that are stored in the - LibEWF: Allows you to process disk images that are stored in the
Expert Witness format (EnCase Format). Version 20130128 has been Expert Witness format (EnCase Format). Version 20130128 has been
tested to compile and work with this release. tested to compile and work with this release. It is the last
stable release of libewf and therefore the only one that we
currently support. You can download it from:
https://github.com/sleuthkit/libewf_64bit
The official repository is available here, but there is not
a package of the last stable release:
https://github.com/libyal/libewf
Available at: http://sourceforge.net/projects/libewf/ Available at: http://sourceforge.net/projects/libewf/
......
...@@ -1101,6 +1101,7 @@ public void save() throws TskCoreException { ...@@ -1101,6 +1101,7 @@ public void save() throws TskCoreException {
SleuthkitCase.CaseDbConnection connection = getSleuthkitCase().getConnection(); SleuthkitCase.CaseDbConnection connection = getSleuthkitCase().getConnection();
Statement statement = null; Statement statement = null;
getSleuthkitCase().acquireSingleUserCaseWriteLock();
try { try {
statement = connection.createStatement(); statement = connection.createStatement();
connection.executeUpdate(statement, queryStr); connection.executeUpdate(statement, queryStr);
...@@ -1113,6 +1114,7 @@ public void save() throws TskCoreException { ...@@ -1113,6 +1114,7 @@ public void save() throws TskCoreException {
} finally { } finally {
closeStatement(statement); closeStatement(statement);
connection.close(); connection.close();
getSleuthkitCase().releaseSingleUserCaseWriteLock();
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment