Permalink
Browse files

[bugfix] add javadoc for method, added logging in case of problems

  • Loading branch information...
1 parent fb2b098 commit 0b27487b0d8bda0d39d3cc984bbc6f429e7cf128 @dizzzz dizzzz committed Sep 25, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/org/exist/storage/BrokerPool.java
@@ -1516,6 +1516,13 @@ public Subject getSubject() {
return securityManager.getGuestSubject();
}
+ /**
+ * Get active broker for current thread
+ *
+ * @return Database broker
+ * @throws RuntimeException NO broker available for current thread.
+ *
+ */
public DBBroker getActiveBroker() { //throws EXistException {
//synchronized(this) {
//Try to get an active broker
@@ -1540,6 +1547,7 @@ public void execute(Map<Thread, DBBroker> map) {
}
}
});
+ LOG.error(sb.toString());
throw new RuntimeException(sb.toString());
}
return broker;

0 comments on commit 0b27487

Please sign in to comment.