code: private void repairDataSize()
     {
        try
        {
           long dataSize = quotaPersister.getWorkspaceDataSize(rName, wsName);
  
           ChangesItem changesItem = new ChangesItem();
           changesItem.updateWorkspaceChangedSize(dataSize);
  
           quotaPersister.setWorkspaceDataSize(rName, wsName, 0); // workaround
  
           Runnable task = new ApplyPersistedChangesTask(wqm.getContext(), changesItem);
           task.run();
        }
        catch (UnknownDataSizeException e)
        {
           if (LOG.isTraceEnabled())
           {
              LOG.trace(e.getMessage(), e);
           }
        }
     }
docs: After workspace data size being restored, need also to update
  repository and global data size on respective value.