handle any exception when failing to snapshot

This commit is contained in:
kimchy 2010-11-09 15:34:17 +02:00
parent f9fb67616d
commit 8266315f51
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ public class FsTranslog extends AbstractIndexShardComponent implements Translog
} else {
return new FsChannelSnapshot(shardId, this.id, raf, lastPosition, operationCounter.get(), operationCounter.get());
}
} catch (IOException e) {
} catch (Exception e) {
throw new TranslogException(shardId, "Failed to snapshot", e);
}
}