Skip to content

Commit 68e4098

Browse files
authored
Merge pull request #741 from smukil/track_reads_correctly_with_repairs
Read-repair enabled messages should update read/write metrics correctly
2 parents 8464a60 + 931f2f3 commit 68e4098

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/proto/dyn_redis_repair.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,10 @@ rstatus_t redis_rewrite_query_with_timestamp_md(struct msg *orig_msg, struct con
934934
update_total_num_tokens(&orig_msg->msg_info);
935935

936936
ret_status = finalize_repair_msg(ctx, orig_msg->owner, &orig_msg->msg_info, new_msg_ptr);
937+
937938
if (ret_status != DN_OK) goto error;
939+
(*new_msg_ptr)->is_read = orig_msg->is_read;
940+
938941
*did_rewrite = true;
939942
return ret_status;
940943

0 commit comments

Comments
 (0)