File tree Expand file tree Collapse file tree 5 files changed +266
-181
lines changed Expand file tree Collapse file tree 5 files changed +266
-181
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
#
3
3
#
4
- RELEASE_VERSION=" 0.8.9 "
4
+ RELEASE_VERSION=" 0.9.1 "
5
5
6
6
buildpath=/tmp/gh-ost
7
7
target=gh-ost
Original file line number Diff line number Diff line change @@ -31,9 +31,8 @@ const (
31
31
type CutOver int
32
32
33
33
const (
34
- CutOverTwoStep CutOver = iota
35
- CutOverVoluntaryLock = iota
36
- CutOverUdfWait = iota
34
+ CutOverSafe CutOver = iota
35
+ CutOverTwoStep = iota
37
36
)
38
37
39
38
const (
@@ -100,6 +99,7 @@ type MigrationContext struct {
100
99
isThrottled bool
101
100
throttleReason string
102
101
throttleMutex * sync.Mutex
102
+ IsPostponingCutOver int64
103
103
104
104
OriginalTableColumns * sql.ColumnList
105
105
OriginalTableUniqueKeys [](* sql.UniqueKey )
Original file line number Diff line number Diff line change @@ -128,12 +128,10 @@ func main() {
128
128
log .Fatalf ("--allow-on-master and --test-on-replica are mutually exclusive" )
129
129
}
130
130
switch * cutOver {
131
+ case "safe" , "default" , "" :
132
+ migrationContext .CutOverType = base .CutOverSafe
131
133
case "two-step" :
132
134
migrationContext .CutOverType = base .CutOverTwoStep
133
- case "voluntary-lock" :
134
- migrationContext .CutOverType = base .CutOverVoluntaryLock
135
- case "" :
136
- log .Fatalf ("--cut-over must be specified" )
137
135
default :
138
136
log .Fatalf ("Unknown cut-over: %s" , * cutOver )
139
137
}
You can’t perform that action at this time.
0 commit comments