You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2021/10/17 15:55:52 UTC
[lucenenet] 07/08:
Lucene.Net.Index.DocumentsWriter::UnlockAllAfterAbortAll() Added missing
when clause on catch block
This is an automated email from the ASF dual-hosted git repository.
nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git
commit b5ce511047d5815165b7f454aa00382f0cf7abd6
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Sat Oct 16 20:44:39 2021 +0700
Lucene.Net.Index.DocumentsWriter::UnlockAllAfterAbortAll() Added missing when clause on catch block
---
src/Lucene.Net/Index/DocumentsWriter.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Lucene.Net/Index/DocumentsWriter.cs b/src/Lucene.Net/Index/DocumentsWriter.cs
index a1745bf..61c26a4 100644
--- a/src/Lucene.Net/Index/DocumentsWriter.cs
+++ b/src/Lucene.Net/Index/DocumentsWriter.cs
@@ -406,7 +406,7 @@ namespace Lucene.Net.Index
perThread.Unlock();
}
}
- catch (Exception e)
+ catch (Exception e) when (e.IsThrowable())
{
if (infoStream.IsEnabled("DW"))
{