FAQ

svn commit: r885647 - /lucene/lucy/trunk/core/Lucy/Store/OutStream.c

Marvin
Dec 1, 2009 at 1:46 am
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;
}
reply

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post

1 user in discussion

Marvin: 1 post