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

No method for fsyncUnlock from ruby driver

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • 12_01_17
    • Affects Version/s: 2.0.4
    • Component/s: None

      Hi,
      I'm writing a mongodb backup script from ruby.
      I am able to run fsynclock my mongod with the following commands:
      uri = "mongodb://#

      {host}

      /#

      {dbname}

      "
      client=Mongo::Client.new(uri)
      client.use('admin').command(

      {fsync:1,lock:true}

      )

      But the same method with
      client.use('admin').command(

      {fsync:1,lock:false}

      )
      Client is hanging until I issue a mongodb db.fsyncUnlock() from regular mongo shell

      It would be extremly helpful if we were able to issue fsyncUnlock from the ruby driver.
      Please advise.

            Assignee:
            emily.stolfo Emily Stolfo
            Reporter:
            inbar@riskified.com Inbar Yogev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: