Skip to content

Commit

Permalink
Supposedly fix possible race in direct read (#6140)
Browse files Browse the repository at this point in the history
  • Loading branch information
FloatingCrowbar authored Jul 2, 2024
1 parent 8bebd27 commit 8bf9bed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ydb/core/persqueue/pq_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,11 @@ class TReadProxy : public TActorBootstrapped<TReadProxy> {
}
Response->Record.SetStatus(NMsgBusProxy::MSTATUS_OK);
Response->Record.SetErrorCode(NPersQueue::NErrorCode::OK);
ctx.Send(Sender, Response.Release());
ctx.Send(
MakePQDReadCacheServiceActorId(),
new TEvPQ::TEvStageDirectReadData(DirectReadKey, TabletGeneration, PreparedResponse)
);
ctx.Send(Sender, Response.Release());
} else {
ctx.Send(Sender, Response.Release());
}
Expand Down

0 comments on commit 8bf9bed

Please sign in to comment.