map.close();
local.create(new Path(path, "finished")).close();
dirs.add(path);
}
// Recover
SortedLogRecovery recovery = new SortedLogRecovery();
CaptureMutations capture = new CaptureMutations();
recovery.recover(extent, dirs, new HashSet<String>(), capture);
return capture.result;
} finally {
local.delete(new Path(workdir), true);
}
}