Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1026

delete method does not support options parameter

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 12_01_17
    • Affects Version/s: None
    • Component/s: Docs
    • None

      I try to delete a file that stored in gridfs, but the file is not deleted immediately.
      I think there is write concern in mongodb, so I want to set options {:w=>1} in delete method.
      But in Ruby driver, there is no way to set options in delete method:
      https://github.com/mongodb/mongo-ruby-driver/blob/master/lib/mongo/grid/fs_bucket.rb#L183

      https://github.com/mongodb/mongo-ruby-driver/blob/e8d458cfc47d6d31320e19be49b47c85be334a1b/lib/mongo/collection.rb#L375

            Assignee:
            emily.stolfo Emily Stolfo
            Reporter:
            chrisloong Chris Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: