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

SERVER-17158 add delimiter to planCacheKey for sort args #938

Closed
wants to merge 1 commit into from
Closed

SERVER-17158 add delimiter to planCacheKey for sort args #938

wants to merge 1 commit into from

Conversation

jameswahlin
Copy link
Contributor

The planCacheKey has no delimiter on sort arguments. This can lead to 2
different sets of sort arguments having the same key. This patch adds the
delimiter to address.
Before:
db.coll.find({a: 1}).sort({a: 1, b: 1}) => eqaaaab
db.coll.find({a: 1}).sort({aab: 1}) => eqa
aaab
After:
db.coll.find({a: 1}).sort({a: 1, b: 1}) => eqaaa,ab
db.coll.find({a: 1}).sort({aab: 1}) => eqa
aaab

@dstorch dstorch self-assigned this Mar 19, 2015
@dstorch dstorch closed this in 879f306 Mar 19, 2015
@jameswahlin jameswahlin deleted the SERVER-17158 branch April 13, 2015 12:49
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.

2 participants