[SERVER-13252] ensureIndex in compatibility mode fails Created: 18/Mar/14  Updated: 11/Jul/16  Resolved: 18/Mar/14

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: 2.6.0-rc2

Type: Bug Priority: Major - P3
Reporter: Greg Studer Assignee: Greg Studer
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

The shell currently does no downconversion of ensureIndex when connected to a legacy host or when the shell is in "compatibility" mode. This prevents scripts written for the 2.6 shell from working properly against older hosts and prevents our regression tests in jsCore from covering the legacy index write path.

Fix is to emulate a command response by creating the index via a safe write.



 Comments   
Comment by Githook User [ 18/Mar/14 ]

Author:

{u'username': u'gregstuder', u'name': u'Greg Studer', u'email': u'greg@10gen.com'}

Message: SERVER-13252 downconvert createIndex in compatibility mode
(cherry picked from commit 910005e639d96cd79c8d27a0237e3e51821407a5)
Branch: v2.6
https://github.com/mongodb/mongo/commit/8034a8d6a1d7158739d66f9c6d0fa0893786f6c6

Comment by Githook User [ 18/Mar/14 ]

Author:

{u'username': u'gregstuder', u'name': u'Greg Studer', u'email': u'greg@10gen.com'}

Message: SERVER-13252 downconvert createIndex in compatibility mode
Branch: master
https://github.com/mongodb/mongo/commit/910005e639d96cd79c8d27a0237e3e51821407a5

Generated at Thu Feb 08 03:31:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.