[ https://issues.apache.org/jira/browse/GEODE-4717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16373260#comment-16373260 ]
ASF subversion and git services commented on GEODE-4717: -------------------------------------------------------- Commit 2a72fb22a698bbe1d9ffca026fea096c1e0b12b5 in geode's branch refs/heads/develop from nabarunnag [ https://gitbox.apache.org/repos/asf?p=geode.git;h=2a72fb2 ] GEODE-4717: Refactor computeRepository * Extracted the code to reindex the region entries to an different method > IndexRepositoryFactory refactor the computeRepository method > ------------------------------------------------------------ > > Key: GEODE-4717 > URL: https://issues.apache.org/jira/browse/GEODE-4717 > Project: Geode > Issue Type: Sub-task > Components: lucene > Reporter: nabarun > Priority: Major > > In computeRepository method call refactor the below code into an extracted > new method > Set<IndexRepository> affectedRepos = new HashSet<IndexRepository>(); > {code:java} > Iterator keysIterator = dataBucket.keySet().iterator(); > while (keysIterator.hasNext()) { > Object key = keysIterator.next(); > Object value = getValue(userRegion.getEntry(key)); > if (value != null) { > repo.update(key, value); > } else { > repo.delete(key); > } > affectedRepos.add(repo); > } > for (IndexRepository affectedRepo : affectedRepos) { > affectedRepo.commit(); > } > // fileRegion ops (get/put) need bucketId as a callbackArg for > PartitionResolver > fileRegion.put(APACHE_GEODE_INDEX_COMPLETE, APACHE_GEODE_INDEX_COMPLETE, > bucketId); > success = true;{code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)