File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
e2e-tests/pkg/tests/sharded Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -66,9 +66,9 @@ func NewPitr(c *Cluster) *Pitr {
66
66
}
67
67
68
68
func (p * Pitr ) Backup () {
69
+ p .c .pitrOn ()
69
70
bcpName := p .c .LogicalBackup ()
70
71
p .started <- struct {}{}
71
- p .c .pitrOn ()
72
72
p .c .BackupWaitDone (context .TODO (), bcpName )
73
73
p .sdone <- struct {}{}
74
74
Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ import (
12
12
)
13
13
14
14
func (c * Cluster ) OplogReplay () {
15
- bcpName := c .LogicalBackup ()
16
-
17
15
c .pitrOn ()
18
16
log .Println ("turn on PITR" )
19
17
defer c .pitrOff ()
20
18
19
+ bcpName := c .LogicalBackup ()
20
+
21
21
counters := make (map [string ]shardCounter )
22
22
for name , cn := range c .shards {
23
23
c .bcheckClear (name , cn )
Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ import (
15
15
)
16
16
17
17
func (c * Cluster ) PITRbasic () {
18
- bcpName := c .LogicalBackup ()
19
-
20
18
c .pitrOn ()
21
19
log .Println ("turn on PITR" )
22
20
defer c .pitrOff ()
23
21
22
+ bcpName := c .LogicalBackup ()
23
+
24
24
counters := make (map [string ]shardCounter )
25
25
for name , cn := range c .shards {
26
26
c .bcheckClear (name , cn )
Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ func (c *Cluster) Timeseries() {
16
16
17
17
ts1 .gen ()
18
18
19
- bcpName := c .LogicalBackup ()
20
-
21
19
c .pitrOn ()
22
20
defer c .pitrOff ()
23
21
22
+ bcpName := c .LogicalBackup ()
23
+
24
24
c .BackupWaitDone (context .TODO (), bcpName )
25
25
26
26
time .Sleep (time .Second )
You can’t perform that action at this time.
0 commit comments