code: public void checkValueStorage(boolean autoRepair)
     {
        SecurityHelper.validateSecurityPermission(JCRRuntimePermissions.MANAGE_REPOSITORY_PERMISSION);
  
        Connection connection = null;
        PreparedStatement st = null;
        ResultSet resultSet = null;
        try
        {
           connection = jdbcDataContainer.getConnectionFactory().getJdbcConnection();
           st = connection.prepareStatement(vsInspectionQuery.getStatement());
           resultSet = st.executeQuery();
  
           if (resultSet.next())
           {
              logDescription("ValueData not found inconsistency");
  
              do
              {
                 String storageDesc = resultSet.getString(DBConstants.COLUMN_VSTORAGE_DESC);
  
                 ValueIOChannel channel = null;
                 try
                 {
                    channel = getIOChannel(storageDesc);
                    doCheckAndRepairValueData(channel, resultSet, autoRepair);
                 }
                 catch (IOException e)
                 {
                    logExceptionAndSetInconsistency("Unexpected exception during checking.", e);
                 }
                 catch (SQLException e)
                 {
                    logExceptionAndSetInconsistency("Unexpected exception during checking.", e);
                 }
                 finally
                 {
                    if (channel != null)
                    {
                       channel.close();
                    }
                 }
              }
              while (resultSet.next());
           }
        }
        catch (SQLException e)
        {
           logExceptionAndSetInconsistency("Unexpected exception during checking.", e);
        }
        catch (RepositoryException e)
        {
           logExceptionAndSetInconsistency("Unexpected exception during checking.", e);
        }
        finally
        {
           JDBCUtils.freeResources(resultSet, st, connection);
        }
     }
docs: Inspect ValueStorage.
  <p>
  All ValueDatas that have storage description (that means, value data stored in value storage) will be inspected:
  <ul>
  <li> does value exists in value storage;</li>
  </ul>