Author: sannegrinovero
Date: 2009-04-19 10:49:21 -0400 (Sun, 19 Apr 2009)
New Revision: 16359
Modified:
search/trunk/src/main/java/org/hibernate/search/backend/impl/EventSourceTransactionContext.java
Log:
HSEARCH-178: lazy initialization in EventSourceTransactionContext not storing initialized
value
Modified:
search/trunk/src/main/java/org/hibernate/search/backend/impl/EventSourceTransactionContext.java
===================================================================
---
search/trunk/src/main/java/org/hibernate/search/backend/impl/EventSourceTransactionContext.java 2009-04-18
14:35:58 UTC (rev 16358)
+++
search/trunk/src/main/java/org/hibernate/search/backend/impl/EventSourceTransactionContext.java 2009-04-19
14:49:21 UTC (rev 16359)
@@ -59,8 +59,8 @@
//registerSynchronization is only called if isRealTransactionInProgress or if
// a flushListener was found; still we might need to find the listener again
// as it might have been cleared by serialization (is transient).
- FullTextIndexEventListener flushList = getIndexWorkFlushEventListener();
- if ( flushList != null ) {
+ flushListener = getIndexWorkFlushEventListener();
+ if ( flushListener != null ) {
flushListener.addSynchronization( eventSource, synchronization );
}
else {