updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / hadoop-svn / progressReporter.patch
blob2ccbbba73b2dc0196c476c5d423648f4334b3302
1 Index: src/core/org/apache/hadoop/fs/kfs/KFSOutputStream.java
2 ===================================================================
3 --- src/core/org/apache/hadoop/fs/kfs/KFSOutputStream.java (revision 764287)
4 +++ src/core/org/apache/hadoop/fs/kfs/KFSOutputStream.java (working copy)
5 @@ -73,7 +73,9 @@
8 // touch the progress before going into KFS since the call can block
9 - progressReporter.progress();
10 + if (progressReporter != null) {
11 + progressReporter.progress();
12 + }
13 kfsChannel.write(ByteBuffer.wrap(b, off, len));
16 @@ -82,7 +84,9 @@
17 throw new IOException("File closed");
19 // touch the progress before going into KFS since the call can block
20 - progressReporter.progress();
21 + if (progressReporter != null) {
22 + progressReporter.progress();
23 + }
24 kfsChannel.sync();