Skip to content

Commit

Permalink
Remove transaction from ingestion redis (#480)
Browse files Browse the repository at this point in the history
(cherry picked from commit c3591ed)
  • Loading branch information
imjuanleonard authored and zhilingc committed Feb 26, 2020
1 parent 2d38c4e commit ef0821a
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,15 +238,13 @@ private void executeBatch() throws Exception {
new Retriable() {
@Override
public void execute() {
pipeline.multi();
mutations.forEach(
mutation -> {
writeRecord(mutation);
if (mutation.getExpiryMillis() != null && mutation.getExpiryMillis() > 0) {
pipeline.pexpire(mutation.getKey(), mutation.getExpiryMillis());
}
});
pipeline.exec();
pipeline.sync();
mutations.clear();
}
Expand Down

0 comments on commit ef0821a

Please sign in to comment.