Skip to content

Commit 59967d5

Browse files
author
Shlomi Noach
authored
Merge pull request #192 from github/row-copy-complete
avoiding writing rows when rowcopy complete
2 parents 2a00abf + bfcedef commit 59967d5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
#
44

5-
RELEASE_VERSION="1.0.13"
5+
RELEASE_VERSION="1.0.14"
66

77
function build {
88
osname=$1

go/logic/migrator.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,10 @@ func (this *Migrator) iterateChunks() error {
11511151
return nil
11521152
}
11531153
copyRowsFunc := func() error {
1154+
if atomic.LoadInt64(&this.rowCopyCompleteFlag) == 1 {
1155+
// Done
1156+
return nil
1157+
}
11541158
hasFurtherRange, err := this.applier.CalculateNextIterationRangeEndValues()
11551159
if err != nil {
11561160
return terminateRowIteration(err)

0 commit comments

Comments
 (0)