Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Prevent hang of LOCK in xquery update code of SOAP interface. Found a…

  • Loading branch information...
commit 42b43b91c453d6921c3284ddacb7581c1b072319 1 parent 9b0db0d
@dizzzz dizzzz authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/org/exist/soap/AdminSoapBindingImpl.java
View
4 src/org/exist/soap/AdminSoapBindingImpl.java
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.