|
@@ -139,7 +139,7 @@ public class FileSnap implements SnapShot {
|
|
|
* find the most recent snapshot in the database.
|
|
|
* @return the file containing the most recent snapshot
|
|
|
*/
|
|
|
- public File findMostRecentSnapshot() throws IOException {
|
|
|
+ public File findMostRecentSnapshot() {
|
|
|
List<File> files = findNValidSnapshots(1);
|
|
|
if (files.size() == 0) {
|
|
|
return null;
|
|
@@ -157,9 +157,8 @@ public class FileSnap implements SnapShot {
|
|
|
* @param n the number of most recent snapshots
|
|
|
* @return the last n snapshots (the number might be
|
|
|
* less than n in case enough snapshots are not available).
|
|
|
- * @throws IOException
|
|
|
*/
|
|
|
- protected List<File> findNValidSnapshots(int n) throws IOException {
|
|
|
+ protected List<File> findNValidSnapshots(int n) {
|
|
|
List<File> files = Util.sortDataDir(snapDir.listFiles(), SNAPSHOT_FILE_PREFIX, false);
|
|
|
int count = 0;
|
|
|
List<File> list = new ArrayList<File>();
|