The static variable $connections appears to be unused in mongodb_collection(). I think this is probably a typo of $collections, which would fit, judging by how $collections is used later in this function.
Proposed patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | mongodb-collections.1.patch | 694 bytes | alan evans |
| #1 | mongodb-collections.patch | 609 bytes | alan evans |
Comments
Comment #1
alan evans commentedComment #2
alan evans commentedRemaking patch from module dir.
Comment #3
crea commentedMarked #777406: Error in mongodb_collection() duplicate of this.
Comment #4
chx commentedThis is no longer relevant.
Comment #5
crea commented@chx
Why ? Bug is still there
Comment #6
crea commentedComment #7
chx commentedOh sorry 6.x. Sure. crea, want commit access? I am not interested in maintaining 6.x. I closed this down because 7.x has so much nicer collection handling now and actually it needs to be backported and then this issue will be irrelevant to 6.x too.
Comment #8
crea commentedSure :) I'll see what I can do
Btw, do you have Mongo connection exception handling ? So when for some mystical reason MongoDB is down and we use it for something not critical e.g. cache, we won't have broken site ?
Comment #9
chx commentedcrea welcome to the MongoDB team! :) Please help maintaing 6.x-1.x and yes please file an issue for exception handling.
Comment #10
thebuckst0p commentedThis was still open, I committed it to 6.x-1.x.