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 33b6e1ca721b970f519d0350a9d9786718b98727
Author: nabarunnag <n...@cs.wisc.edu>
AuthorDate: Wed Feb 21 17:48:14 2018 -0800

    GEODE-4719: Added comments to explain getRepository
    
        * Added comments to explain that getRepository calls computeRepository 
which in turns indexing the user region
---
 .../org/apache/geode/cache/lucene/internal/LuceneServiceImpl.java   | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/LuceneServiceImpl.java
 
b/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/LuceneServiceImpl.java
index 3894e32..73fe203 100644
--- 
a/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/LuceneServiceImpl.java
+++ 
b/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/LuceneServiceImpl.java
@@ -304,6 +304,12 @@ public class LuceneServiceImpl implements 
InternalLuceneService {
         try {
           BucketRegion userBucket = 
userRegion.getDataStore().getLocalBucketById(primaryBucketId);
           if (!userBucket.isEmpty()) {
+            /**
+             *
+             * Calling getRepository will in turn call computeRepository
+             * which is responsible for indexing the user region.
+             *
+             **/
             repositoryManager.getRepository(primaryBucketId);
           }
         } catch (BucketNotFoundException | PrimaryBucketException e) {

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

Reply via email to