t.printStackTrace();
Logger.error(this, "Failed migrating from old database: "+t, t);
return; // Something went seriously wrong, likely a bug. Don't delete.
} finally {
if(lock != null)
lock.unlock(false, NativeThread.currentThread().getPriority());
}
// The global queue is the important bit. Write the progress so far.
System.out.println("Writing migrated global queue");
try {