You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2009/12/01 02:46:08 UTC
svn commit: r885647 - /lucene/lucy/trunk/core/Lucy/Store/OutStream.c
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;
}