Skip to content

Commit

Permalink
Merge pull request #302 from dizzzz/soap_interface_fix
Browse files Browse the repository at this point in the history
Prevent hang of LOCK in xquery update code of SOAP interface
  • Loading branch information
wolfgangmm committed Aug 18, 2014
2 parents 9b0db0d + 42b43b9 commit 366763b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/org/exist/soap/AdminSoapBindingImpl.java
Expand Up @@ -369,6 +369,10 @@ public int xupdateResource(java.lang.String sessionId, XmldbURI documentName, ja
broker.flush();
}
transact.commit(transaction);

// Release lock, as reported http://markmail.org/message/pau6hoaeybg2bvch
doc.getUpdateLock().release(Permission.READ);

return (int) mods;
} catch (final ParserConfigurationException e) {
transact.abort(transaction);
Expand Down

0 comments on commit 366763b

Please sign in to comment.