示例#1
0
 public void recover(
     VolumeManager fs,
     Tablet tablet,
     List<Path> logs,
     Set<String> tabletFiles,
     MutationReceiver mr)
     throws IOException {
   if (!enabled(tablet)) return;
   try {
     SortedLogRecovery recovery = new SortedLogRecovery(fs);
     KeyExtent extent = tablet.getExtent();
     recovery.recover(extent, logs, tabletFiles, mr);
   } catch (Exception e) {
     throw new IOException(e);
   }
 }
示例#2
0
 private static boolean enabled(Tablet tablet) {
   return tablet.getTableConfiguration().getBoolean(Property.TABLE_WALOG_ENABLED);
 }