jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1130192 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/SharedItemStateManager.java
Date Wed, 01 Jun 2011 15:35:36 GMT
Author: jukka
Date: Wed Jun  1 15:35:36 2011
New Revision: 1130192

URL: http://svn.apache.org/viewvc?rev=1130192&view=rev
Log:
JCR-2965: Show referencing nodes in debug log when trying to delete a node with references

Changes based on the patch by Bart van der Schans and comments by Stefan Guggisberg.

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/SharedItemStateManager.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/SharedItemStateManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/SharedItemStateManager.java?rev=1130192&r1=1130191&r2=1130192&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/SharedItemStateManager.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/SharedItemStateManager.java
Wed Jun  1 15:35:36 2011
@@ -1056,9 +1056,10 @@ public class SharedItemStateManager
                         // may actually be deleted and then again added with the
                         // same UUID, i.e. the node is still referenceable.
                         if (refs.hasReferences() && !local.has(targetId)) {
-                            String msg = node.getNodeId()
-                                    + ": the node cannot be removed because it is still being
referenced.";
-                            log.debug(msg);
+                            String msg =
+                                node.getNodeId() + " cannot be removed"
+                                + " because it is still being referenced";
+                            log.debug("{} from {}", msg, refs.getReferences());
                             throw new ReferentialIntegrityException(msg);
                         }
                     }



Mime
View raw message