-
Notifications
You must be signed in to change notification settings - Fork 102
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
Deprecation of system.namespaces in Mongo 3 #193
Comments
I am working on a patch for this, and will PR when ready. |
I've added |
Oh! I didn't see that! Should |
Yes, you may do fallback to |
I was just digging through the protocol docs looking for something useful, and another possibility is to use the listCommands command at connection time to configure behavior for this and possibly other commands that have become deprecated. I'm not sure if that's a good idea or not. |
Also, how do you feel about moving |
Sure, please do this
I think there is no need because we already have def collection_names(self, **kwargs):
def on_proto(proto):
if proto.max_wire_version >= 3:
# send listCommands to proto
else:
# send system.namespaces query to proto
return self.connection.getprotocol().addCallback(on_proto) But you will need to send command via the same connection, But it turns out that my approach with falling back to |
Seems like if we want technically correct implementation, we have to do it like described in previous post. I can't imagine any easier way that is still bulletproof :( |
Ha, nothing is simple in the end, right? I am half way through a prototype implementation as you described above. I will make a PR once I'm done. Thanks for the feed back on this, you are a lot more knowledgeable on the internals of this than I am, and it's very helpful. |
The
collection_names
method uses direct access tosystem.namespaces
, which is now deprecated in Mongo 3.0The text was updated successfully, but these errors were encountered: