[
https://issues.apache.org/jira/browse/LUCENE-5079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13694103#comment-13694103
]
Uwe Schindler commented on LUCENE-5079:
---------------------------------------
Alternatively you can make the whole method synchronized. sync(this) is just
more explicit and goes in line with the other uses of lastCommitChangeCount
> allow IndexWriter user to tell if there are uncommitted changes.
> ----------------------------------------------------------------
>
> Key: LUCENE-5079
> URL: https://issues.apache.org/jira/browse/LUCENE-5079
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Yonik Seeley
> Attachments: LUCENE-5079.patch
>
>
> IndexWriter already currently tracks if there are uncommitted changes. We
> should expose this somehow... perhaps a boolean hasUncommittedChanges()?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]