directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1688107 - /directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/RecordManager.java
Date Mon, 29 Jun 2015 08:16:37 GMT
Author: kayyagari
Date: Mon Jun 29 08:16:37 2015
New Revision: 1688107

URL: http://svn.apache.org/r1688107
Log:
include thread name in the error message

Modified:
    directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/RecordManager.java

Modified: directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/RecordManager.java
URL: http://svn.apache.org/viewvc/directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/RecordManager.java?rev=1688107&r1=1688106&r2=1688107&view=diff
==============================================================================
--- directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/RecordManager.java
(original)
+++ directory/mavibot/trunk/mavibot/src/main/java/org/apache/directory/mavibot/btree/RecordManager.java
Mon Jun 29 08:16:37 2015
@@ -649,8 +649,10 @@ public class RecordManager extends Abstr
         // We *must* own the transactionLock
         if ( !transactionLock.isHeldByCurrentThread() )
         {
-            TXN_LOG.error( "This thread does not hold the transactionLock" );
-            throw new RecordManagerException( "This thread does not hold the transactionLock"
);
+            String name = Thread.currentThread().getName();
+            String err = "This thread, '" + name + "' does not hold the transactionLock ";
+            TXN_LOG.error( err );
+            throw new RecordManagerException( err );
         }
 
         if ( TXN_LOG.isDebugEnabled() )



Mime
View raw message