Shutdown the logging system, writing out whatever state is necessary so that start up can happen quickly (without extensive recovery.)
()
| 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 |
nothing calls this directly
no test coverage detected