Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
@@ -264,9 +264,9 @@ public class Journal implements Closeable {
*/
@Override // Closeable
public void close() throws IOException {
- storage.close();
IOUtils.closeStream(committedTxnId);
IOUtils.closeStream(curSegment);
+ storage.close();
}
JNStorage getStorage() {