File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change
1
+ 2020-05-06 Alibaba Cloud.
2
+ * VERSION: 2.0.2
3
+ * BUGFIX: fix bug of `target.db` isn't work in cascade replication
4
+ scenario. see #277.
1
5
2020-05-02 Alibaba Cloud.
2
6
* VERSION: 2.0.1
3
7
* IMPROVE: rebase v1.6.28.
Original file line number Diff line number Diff line change @@ -158,9 +158,19 @@ func (ds *DbSyncer) parseSourceCommand(reader *bufio.Reader) {
158
158
// sendMarkId atomic2.Int64 // sendMarkId is also used as mark the sendId in sender routine
159
159
)
160
160
161
- // if the start db id != 0, send dbid to the target at first
161
+ // if enable target.db
162
+ if conf .Options .TargetDB != - 1 {
163
+ ds .startDbId = conf .Options .TargetDB
164
+ }
165
+
166
+ /*
167
+ * if the start db id != 0, send dbid to the target at first.
168
+ * there're two cases that the statDbId != 0:
169
+ * 1. enable target.db. see #277.
170
+ * 2. start from resume-from-break-point
171
+ */
162
172
if ds .startDbId != 0 {
163
- log .Infof ("last dbid[%v] != 0, send 'select' first" , ds .startDbId )
173
+ log .Infof ("start dbid[%v] != 0, send 'select' first" , ds .startDbId )
164
174
dbS := fmt .Sprintf ("%d" , ds .startDbId )
165
175
ds .sendBuf <- cmdDetail {
166
176
Cmd : "select" ,
You can’t perform that action at this time.
0 commit comments