Skip to content

Commit

Permalink
Merge pull request #23 from livetheoogway/issue-19
Browse files Browse the repository at this point in the history
Fix on the error code while creating indexes
  • Loading branch information
Tushar-Naik authored Sep 20, 2023
2 parents 0d5d43e + 18e1df7 commit 42a43b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ private void setupIndexes() {
log.info("Created index: {}", storeSetting.refIdIndex());
}
} catch (AerospikeException e) {
if (e.getResultCode() == 100) {
if (e.getResultCode() == 100 || e.getResultCode() == 200) {
log.info("Index already exists:{}", storeSetting.refIdIndex());
return;
}
Expand Down

0 comments on commit 42a43b6

Please sign in to comment.