Skip to content
This repository has been archived by the owner on Jul 4, 2022. It is now read-only.

Commit

Permalink
Merge pull request #38 from taku-k/fix/inc-backup-db-notfound
Browse files Browse the repository at this point in the history
Fix segmentation fault in case db is not found
  • Loading branch information
taku-k authored Jul 11, 2017
2 parents 7432929 + 7784f54 commit d749712
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/cli/inc_backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ func runIncBackup(cmd *cobra.Command, args []string) error {
finishCh := make(chan struct{})

// Fetches latest to_lsn
scli, _ := getStorageClient(ctx, db)
scli, err := getStorageClient(ctx, db)
if err != nil {
return err
}
res, err := scli.GetLatestToLSN(context.Background(), &storagepb.GetLatestToLSNRequest{Db: db})
if err != nil {
return errors.Wrapf(err, "Failed to get latest `to_lsn` with db=%s", db)
Expand Down

0 comments on commit d749712

Please sign in to comment.