Skip to content

Commit

Permalink
Merge pull request #176 from Olog/flush_update
Browse files Browse the repository at this point in the history
Flush immediately on log entry update
  • Loading branch information
shroffk authored Oct 6, 2023
2 parents 540844d + df61ff5 commit e44a54f
Show file tree
Hide file tree
Showing 2 changed files with 132 additions and 215 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/phoebus/olog/LogRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ public Log update(Log log) {
IndexRequest.of(i ->
i.index(ES_LOG_INDEX)
.id(String.valueOf(document.getId()))
.refresh(Refresh.True)
.document(document));

IndexResponse response = client.index(indexRequest);
Expand Down
Loading

0 comments on commit e44a54f

Please sign in to comment.