Skip to content

Commit

Permalink
allow to subscribe one region multiple times in one stream
Browse files Browse the repository at this point in the history
Signed-off-by: qupeng <qupeng@pingcap.com>
  • Loading branch information
hicqu committed Jul 4, 2023
1 parent 6ca4a62 commit d7a5672
Show file tree
Hide file tree
Showing 9 changed files with 961 additions and 460 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions components/cdc/src/delegate.rs
Expand Up @@ -221,6 +221,9 @@ impl Downstream {
pub fn get_conn_id(&self) -> ConnId {
self.conn_id
}
pub fn get_req_id(&self) -> u64 {
self.req_id
}
}

#[derive(Default)]
Expand Down Expand Up @@ -710,6 +713,7 @@ impl Delegate {

let event = Event {
region_id,
request_id: downstream.get_req_id(),
index,
event: Some(Event_oneof_event::Entries(EventEntries {
entries: entries_clone.into(),
Expand Down

0 comments on commit d7a5672

Please sign in to comment.