File tree Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -97,15 +97,16 @@ const (
97
97
// for phys restore, to indicate shards have been stopped
98
98
StatusDown Status = "down"
99
99
100
- StatusStarting Status = "starting"
101
- StatusRunning Status = "running"
102
- StatusDumpDone Status = "dumpDone"
103
- StatusCopyReady Status = "copyReady"
104
- StatusCopyDone Status = "copyDone"
105
- StatusPartlyDone Status = "partlyDone"
106
- StatusDone Status = "done"
107
- StatusCancelled Status = "canceled"
108
- StatusError Status = "error"
100
+ StatusStarting Status = "starting"
101
+ StatusCleanupCluster Status = "cleanupCluster"
102
+ StatusRunning Status = "running"
103
+ StatusDumpDone Status = "dumpDone"
104
+ StatusCopyReady Status = "copyReady"
105
+ StatusCopyDone Status = "copyDone"
106
+ StatusPartlyDone Status = "partlyDone"
107
+ StatusDone Status = "done"
108
+ StatusCancelled Status = "canceled"
109
+ StatusError Status = "error"
109
110
110
111
// status to communicate last op timestamp if it's not set
111
112
// during external restore
Original file line number Diff line number Diff line change @@ -240,7 +240,9 @@ func (r *Restore) Snapshot(
240
240
return err
241
241
}
242
242
243
- err = r .toState (ctx , defs .StatusRunning , & defs .WaitActionStart )
243
+ err = r .toState (ctx , defs .StatusCleanupCluster , & defs .WaitActionStart )
244
+
245
+ err = r .toState (ctx , defs .StatusRunning , nil )
244
246
if err != nil {
245
247
return err
246
248
}
You can’t perform that action at this time.
0 commit comments