@Override
public void onStorageRecover() {
final String sqlGraphConsistencyMode = OGlobalConfiguration.SQL_GRAPH_CONSISTENCY_MODE.getValueAsString();
if ("notx_sync_repair".equalsIgnoreCase(sqlGraphConsistencyMode)) {
new OGraphRepair().repair(this, OLogManager.instance().getCommandOutputListener(this, Level.INFO), null);
} else if ("notx_async_repair".equalsIgnoreCase(sqlGraphConsistencyMode)) {
final OrientBaseGraph g = this;
Thread t = new Thread(new Runnable() {
@Override
public void run() {
new OGraphRepair().repair(g, OLogManager.instance().getCommandOutputListener(this, Level.INFO), null);
}
});
t.setUncaughtExceptionHandler(new OUncaughtExceptionHandler());
t.start();
}
}