Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-65736

Backport changes to mongo shell to permit ".allowDiskUse(false)"

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • v4.4

      As part of related ticket SERVER-63208 we changed the behavior of the allowDiskUse() shell helper. It used to be that allowDiskUse() was a no-arguments function which always set allowDiskUse:true on the find command. Now, if an argument is provided, this gets passed through to the server as the value of the allowDiskUse option. In other words, now you can do something like this in the legacy shell:

      db.myCollection.find().sort({foo: 1}).allowDiskUse(false);
      

      This confusingly used to result in passing allowDiskUse:true to the server, but now it will pass allowDiskUse:false as you might expect.

      The work for this ticket is to backport this part of the change from SERVER-63208 to the 5.0 branch, and possibly to older branches as well.

            Assignee:
            romans.kasperovics@mongodb.com Romans Kasperovics
            Reporter:
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: