lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [40/50] [abbrv] lucenenet git commit: BUG: Lucene.Net.Core.Index.IndexFileDeleter: Need to catch IOException and let other exceptions bubble here in order to ensure correct control flow
Date Wed, 15 Mar 2017 23:50:22 GMT
BUG: Lucene.Net.Core.Index.IndexFileDeleter: Need to catch IOException and let other exceptions
bubble here in order to ensure correct control flow


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/278b680c
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/278b680c
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/278b680c

Branch: refs/heads/api-work
Commit: 278b680c7616330161e274f92e329123e3291761
Parents: 2608d16
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Wed Mar 15 23:03:48 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Wed Mar 15 23:03:48 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Index/IndexFileDeleter.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/278b680c/src/Lucene.Net.Core/Index/IndexFileDeleter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Index/IndexFileDeleter.cs b/src/Lucene.Net.Core/Index/IndexFileDeleter.cs
index b431b55..0faa8f0 100644
--- a/src/Lucene.Net.Core/Index/IndexFileDeleter.cs
+++ b/src/Lucene.Net.Core/Index/IndexFileDeleter.cs
@@ -692,7 +692,7 @@ namespace Lucene.Net.Index
                 }
                 directory.DeleteFile(fileName);
             } // if delete fails
-            catch (Exception e)
+            catch (IOException e)
             {
                 // Some operating systems (e.g. Windows) don't
                 // permit a file to be deleted while it is opened


Mime
View raw message