Skip to content

Commit

Permalink
spotbugsMain adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
jjezra committed Oct 12, 2021
1 parent 15865fe commit 4a2fe46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ protected static Tuple convertOrNull(@Nullable Key.Evaluated key) {
protected CompletableFuture<FDBStoredRecord<Message>> recordIfInIndexedTypes(FDBStoredRecord<Message> rec) {
return CompletableFuture.completedFuture( rec != null && common.getAllRecordTypes().contains(rec.getRecordType()) ? rec : null);
}

// buildIndexAsync - the main indexing function. Builds and commits indexes asynchronously; throttling to avoid overloading the system.
public CompletableFuture<Void> buildIndexAsync(boolean markReadable) {
KeyValueLogMessage message = KeyValueLogMessage.build("build index online",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ public static class IndexContext {

this.totalRecordsScanned = new AtomicLong(0);
this.targetIndexContexts = new ArrayList<>(targetIndexes.size());
this.allRecordTypes = new HashSet<>();

fillTargetIndexers(targetIndexes, allRecordTypes);
}

private void fillTargetIndexers(@Nonnull List<Index> targetIndexes, @Nullable Collection<RecordType> recordTypes) {
boolean presetTypes = false;
this.allRecordTypes = new HashSet<>();
if (recordTypes != null) {
if (targetIndexes.size() > 1) {
throw new IndexingBase.ValidationException("Can't use preset record types with multi target indexing");
Expand Down

0 comments on commit 4a2fe46

Please sign in to comment.