From 4b028c66ee91312ec39a2b5b7b0dfc174f0923f5 Mon Sep 17 00:00:00 2001 From: Gary Spencer Date: Fri, 15 Dec 2006 18:15:20 +0000 Subject: [PATCH] Removed unnecessary checks for empty pseudo folder list, and create the root folder file state if required in the AVM callback listeners. Fixes a problem where the virtualization view does not update when new stores/versions are created when the database is empty on startup, AR-1134. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4622 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- source/java/org/alfresco/filesys/avm/AVMContext.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/java/org/alfresco/filesys/avm/AVMContext.java b/source/java/org/alfresco/filesys/avm/AVMContext.java index 7d9969a874..80373f6f91 100644 --- a/source/java/org/alfresco/filesys/avm/AVMContext.java +++ b/source/java/org/alfresco/filesys/avm/AVMContext.java @@ -181,9 +181,9 @@ public class AVMContext extends AlfrescoContext // Find the file state for the root folder - FileState rootState = fsTable.findFileState( FileName.DOS_SEPERATOR_STR); + FileState rootState = fsTable.findFileState( FileName.DOS_SEPERATOR_STR, true, true); - if ( rootState != null && rootState.hasPseudoFiles()) + if ( rootState != null) { // Add a pseudo folder for the new store @@ -228,6 +228,7 @@ public class AVMContext extends AlfrescoContext // Find the file state for the root folder FileState rootState = fsTable.findFileState( FileName.DOS_SEPERATOR_STR); + if ( rootState != null && rootState.hasPseudoFiles()) { // Remove the pseudo folder for the store @@ -289,7 +290,7 @@ public class AVMContext extends AlfrescoContext FileState verState = fsTable.findFileState( pathStr.toString()); - if ( verState != null && verState.hasPseudoFiles()) + if ( verState != null) { // Create the version folder name