public OStorageConfigurationImpl load ( final OContextConfiguration configuration ) throws OSerializationException { lock . acquireWriteLock ( ) ; try { initConfiguration ( configuration ) ; final byte [ ] record = storage . readRecord ( CONFIG_RID , null , false , false , null ) . getResult ( ) . buffer ; if ( record == null ) throw new OStorageException ( "Cannot load database configuration. The database seems corrupted" ) ; fromStream ( record , 0 , record . length , streamCharset ) ; } finally { lock . releaseWriteLock ( ) ; } return this ; }
This method load the record information by the internal cluster segment . It s for compatibility with older database than 0 . 9 . 25 .