/** * Load an edit log, and apply the changes to the in-memory structure This is where we apply edits * that we've been writing to disk all along. */ int loadFSEdits(EditLogInputStream edits) throws IOException { DataInputStream in = edits.getDataInputStream(); long startTime = now(); int numEdits = loadFSEdits(in, true); FSImage.LOG.info( "Edits file " + edits.getName() + " of size " + edits.length() + " edits # " + numEdits + " loaded in " + (now() - startTime) / 1000 + " seconds."); return numEdits; }