gitlab #858
Change-Id: Ie0da930769e275f72577363fef98bdc65ea69ff4
private static void writeTransferableGraph(RequestProcessor processor, final TransferableGraphSource source, final RandomAccessBinary out, TGStatusMonitor monitor) throws Exception {
long start = System.nanoTime();
-
+ try {
final Serializer datatypeSerializer = Bindings.getSerializerUnchecked(Datatype.class);
final Serializer identitySerializer = Bindings.getSerializerUnchecked(Identity.class);
final Serializer extensionSerializer = Bindings.getSerializerUnchecked(Extensions.class);
}
}
});
+ } finally {
+ source.close();
+ }
long end = System.nanoTime();
LOGGER.info("Wrote transferable graph in {} seconds.", 1e-9*(end-start));