MCPcopy Create free account
hub / github.com/1345414527/MIT6.830 / shutdown

Method shutdown

src/java/simpledb/storage/LogFile.java:503–511  ·  view source on GitHub ↗

Shutdown the logging system, writing out whatever state is necessary so that start up can happen quickly (without extensive recovery.)

()

Source from the content-addressed store, hash-verified

501 extensive recovery.)
502 */
503 public synchronized void shutdown() {
504 try {
505 logCheckpoint(); //simple way to shutdown is to write a checkpoint record
506 raf.close();
507 } catch (IOException e) {
508 System.out.println("ERROR SHUTTING DOWN -- IGNORING.");
509 e.printStackTrace();
510 }
511 }
512
513 /** Recover the database system by ensuring that the updates of
514 committed transactions are installed and that the

Callers

nothing calls this directly

Calls 2

logCheckpointMethod · 0.95
closeMethod · 0.65

Tested by

no test coverage detected