Changeset 6656


Ignore:
Timestamp:
2004-01-29T14:30:11+13:00 (20 years ago)
Author:
jmt12
Message:

Unfortunately my quick-fix to the WGet not updating FileNodes problem doesn't work. It in fact causes several NPE's when attempting to copy files regularily - the problem being that the getNode() method calls unmap() on a different thread than that which calls map(), and so you often get both at the same time. More-over at east one of the thread is from the AWT Event thread so placing synchronization other the two problematic methods causes GUI deadlock. Solution - remove unmap() from getNode(). Result - WGet won't properly update workspace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/file/FileSystemModel.java

    r6637 r6656  
    6969        Gatherer.print("Searching for '" + stale_object + "': ");
    7070        // Locate the fresh node by searching current's children. Remember to ensure that current is mapped.
    71         current.unmap();
     71        //current.unmap();
    7272        boolean found = false;
    7373
     
    9999            Gatherer.println("Not Found!");
    100100        }
     101        else {
     102            Gatherer.println("Returning node: " + new TreePath(current.getPath()));
     103        }
    101104        // Repeat as necessary
    102105        }
    103106    }
    104     Gatherer.println("Returning node: " + new TreePath(current.getPath()));
    105107    return current;
    106108    }
Note: See TracChangeset for help on using the changeset viewer.