[jboss-jira] [JBoss JIRA] Created: (JBCACHE-910) TreeCache.createSubtreeRootNode(Fqn subtree) ugliness

Elias Ross (JIRA) jira-events at jboss.com
Tue Dec 19 18:18:13 EST 2006


TreeCache.createSubtreeRootNode(Fqn subtree) ugliness
-----------------------------------------------------

                 Key: JBCACHE-910
                 URL: http://jira.jboss.com/jira/browse/JBCACHE-910
             Project: JBoss Cache
          Issue Type: Bug
      Security Level: Public (Everyone can see)
            Reporter: Elias Ross
         Assigned To: Manik Surtani


This method is called by the region manager.

There's a bunch of Voodoo taking place here, legacy bits mixed with some newer stuff.

One thing that strikes me as wrong already is this code:

child = factory.createDataNode(type, name,
                       subtree.getFqnChild(i + 1),
                       parent, lock_table, coordinator, null, this.rootSpi);

For some reason, it is passing the lock_table into the Node as the data to initialize the node with.

Somehow I think the right way to fix this would be to do a Cache.addChild(Fqn) call in RegionManager and remove this method.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list