private void addPathsWithUnknownChangedSize ( ChangesItem changesItem , ItemState state ) { if ( ! state . isPersisted ( ) && ( state . isDeleted ( ) || state . isRenamed ( ) ) ) { String itemPath = getPath ( state . getData ( ) . getQPath ( ) ) ; for ( String trackedPath : quotaPersister . getAllTrackedNodes ( rName , wsName ) ) { if ( itemPath . startsWith ( trackedPath ) ) { changesItem . addPathWithUnknownChangedSize ( itemPath ) ; } } } }
Checks if changes were made but changed size is unknown . If so determinate for which nodes data size should be recalculated at all and put those paths into respective collection .