lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r885647 - /lucene/lucy/trunk/core/Lucy/Store/OutStream.c
Date Tue, 01 Dec 2009 01:46:08 GMT
Author: marvin
Date: Tue Dec  1 01:46:03 2009
New Revision: 885647

URL: http://svn.apache.org/viewvc?rev=885647&view=rev
Log:
Ensure that OutStream_Close() fails if FH_Close() fails for its FileHandle.

Modified:
    lucene/lucy/trunk/core/Lucy/Store/OutStream.c

Modified: lucene/lucy/trunk/core/Lucy/Store/OutStream.c
URL: http://svn.apache.org/viewvc/lucene/lucy/trunk/core/Lucy/Store/OutStream.c?rev=885647&r1=885646&r2=885647&view=diff
==============================================================================
--- lucene/lucy/trunk/core/Lucy/Store/OutStream.c (original)
+++ lucene/lucy/trunk/core/Lucy/Store/OutStream.c Tue Dec  1 01:46:03 2009
@@ -319,6 +319,9 @@
 {
     if (self->file_handle) {
         S_flush(self);
+        if (!FH_Close(self->file_handle)) {
+            RETHROW(INCREF(Err_get_error()));
+        }
         DECREF(self->file_handle);
         self->file_handle = NULL;
     }



Mime
View raw message