Skip to content

Reapply: Fix an issue status type (+) is not read/write properly #37

Merged
greedy52 merged 2 commits intomasterfrom
STeve/reapply_status_fix
Mar 8, 2023
Merged

Reapply: Fix an issue status type (+) is not read/write properly #37
greedy52 merged 2 commits intomasterfrom
STeve/reapply_status_fix

Conversation

@greedy52
Copy link
Copy Markdown

@greedy52 greedy52 commented Mar 7, 2023

cherry-picked c2209e9

added a ReaderOpt for choosing StatusString vs string, see 6d50ab7

Base automatically changed from upstream-v9.0.2 to master March 7, 2023 21:22
@greedy52 greedy52 force-pushed the STeve/reapply_status_fix branch from 35f9605 to 6d50ab7 Compare March 7, 2023 21:26
@greedy52 greedy52 requested a review from smallinsky March 7, 2023 21:43
@greedy52 greedy52 marked this pull request as ready for review March 7, 2023 21:43
Comment thread internal/proto/reader.go

switch line[0] {
case RespStatus:
if r.opt.useStatusStringType {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes the tests, but do we worry it might introduce an unexpected condition when enabled?

Copy link
Copy Markdown
Author

@greedy52 greedy52 Mar 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we worry it might introduce an unexpected condition when enabled?

No, i don't think so. This change just means when Teleport is using the Reader explicitly/directly, we always get the StatusString type, which is what the Teleport db engine wants. And when Reader is used internally by the go-redis driver itself, it's a string like the old day.

Copy link
Copy Markdown

@jentfoo jentfoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, particularly considering we will need to test the 9.0.2 update in general anyways

@greedy52 greedy52 merged commit 47d561e into master Mar 8, 2023
@greedy52 greedy52 deleted the STeve/reapply_status_fix branch March 8, 2023 14:18
greedy52 added a commit that referenced this pull request Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants