Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement additional context specific sql interfaces #4

Merged
merged 6 commits into from
Sep 27, 2019

Conversation

bstein-clever
Copy link

Cherry-picked from here: lib#768

}

func (st *stmt) cancel() error {
return st.cn.cancel()
Copy link

@Sayan- Sayan- Mar 13, 2019

Choose a reason for hiding this comment

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

Discussed this offline - we need to double check that this cancel function is thread safe. It is a very real possibility that it is called multiple times since watchCancel spawns multiple go routines without stopping/killing them

@Sayan-
Copy link

Sayan- commented Mar 28, 2019

Well this has been working fine in prod for a while. Is there any other vetting you want to do @bstein-clever

@bstein-clever
Copy link
Author

I'm fine with it.
The worst-case is that something doesn't get cancelled, and then we're only in the same situation as before.

Copy link

@Sayan- Sayan- left a comment

Choose a reason for hiding this comment

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

@bstein-clever before you merge can you make sure you're happy with dd5efc1

This removes references to the root lib/pq we forked from. I think it's a decent protection to have, but I'm not sure if it makes this fork that much harder to maintain for the build protection it gives us

@bstein-clever bstein-clever merged commit 278004c into master Sep 27, 2019
@bstein-clever bstein-clever deleted the context-cancel branch September 27, 2019 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants