Exemple #1
0
 public void commitChanges(WriteAheadLog wal) throws IOException {
   if (!dirty) {
     return;
   }
   for (PageDiff diff : diffList) {
     wal.addPageDiff(getId(), diff);
   }
   wal.addMetaData(getId(), getNextPageId(), getCurrentFill());
 }