Skip to content

Commit

Permalink
backup: set zero start version to be compatible with latest tikv (pin…
Browse files Browse the repository at this point in the history
…gcap#124)

Signed-off-by: Neil Shen <[email protected]>
  • Loading branch information
overvenus authored Dec 20, 2019
1 parent cd6a176 commit 3d2a9c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/backup/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ func (bc *Client) backupRange(
ClusterId: bc.clusterID,
StartKey: startKey,
EndKey: endKey,
StartVersion: backupTS,
StartVersion: 0, // Zero start version means full backup.
EndVersion: backupTS,
StorageBackend: bc.backend,
RateLimit: rateLimit,
Expand Down Expand Up @@ -623,7 +623,7 @@ func (bc *Client) handleFineGrained(
ClusterId: bc.clusterID,
StartKey: rg.StartKey, // TODO: the range may cross region.
EndKey: rg.EndKey,
StartVersion: backupTS,
StartVersion: 0, // Zero start version means full backup.
EndVersion: backupTS,
StorageBackend: bc.backend,
RateLimit: rateLimit,
Expand Down

0 comments on commit 3d2a9c0

Please sign in to comment.