This is an automated email from the ASF dual-hosted git repository.

nnag pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git

commit 073180cf8a907d944dc20455669ec2fd0f3deb8e
Author: nabarunnag <n...@cs.wisc.edu>
AuthorDate: Wed Feb 21 17:32:52 2018 -0800

    GEODE-4718: PdxReadSerialized is reset
    
        * PdxReadSerialized flag is reset back to its initial state before it 
was changed to true.
---
 .../org/apache/geode/cache/lucene/internal/IndexRepositoryFactory.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/IndexRepositoryFactory.java
 
b/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/IndexRepositoryFactory.java
index 1d1c77b..5df2617 100644
--- 
a/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/IndexRepositoryFactory.java
+++ 
b/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/IndexRepositoryFactory.java
@@ -95,6 +95,7 @@ public class IndexRepositoryFactory {
     }
 
     final IndexRepository repo;
+    boolean initialPdxReadSerializedFlag = DefaultQuery.getPdxReadSerialized();
     DefaultQuery.setPdxReadSerialized(true);
     try {
       // bucketTargetingMap handles partition resolver (via bucketId as 
callbackArg)
@@ -126,7 +127,7 @@ public class IndexRepositoryFactory {
     } finally {
       if (!success) {
         lockService.unlock(lockName);
-        DefaultQuery.setPdxReadSerialized(false);
+        DefaultQuery.setPdxReadSerialized(initialPdxReadSerializedFlag);
       }
     }
   }

-- 
To stop receiving notification emails like this one, please contact
n...@apache.org.

Reply via email to