jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r745849 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/AppendRecord.java
Date Thu, 19 Feb 2009 13:02:51 GMT
Author: mreutegg
Date: Thu Feb 19 13:02:51 2009
New Revision: 745849

URL: http://svn.apache.org/viewvc?rev=745849&view=rev
Log:
JCR-1989: AppendRecord writes single bytes to disk

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/AppendRecord.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/AppendRecord.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/AppendRecord.java?rev=745849&r1=745848&r2=745849&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/AppendRecord.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/AppendRecord.java
Thu Feb 19 13:02:51 2009
@@ -28,6 +28,7 @@
 import java.io.FileOutputStream;
 import java.io.IOException;
 import java.io.InputStream;
+import java.io.BufferedOutputStream;
 
 /**
  * Default temporary record used for appending to some journal.
@@ -328,7 +329,7 @@
                 String msg = "Unable to open output stream on: " + file.getPath();
                 throw new JournalException(msg, e);
             }
-            dataOut = new DataOutputStream(fileOut);
+            dataOut = new DataOutputStream(new BufferedOutputStream(fileOut));
 
             try {
                 dataOut.write(byteOut.toByteArray());



Mime
View raw message