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

mongodumping oplog with timestamp query

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.0.6
    • Component/s: Querying, Tools
    • Labels:
      None
    • ALL

      we're trying to dump a part of our oplog.rs collection, buy issuing this query:

      mongodump -d local -c oplog.rs -q '{"ts":{"$gte": {"$timestamp":{"t":1343842923000,"i":0}}}}'
      

      but it doesn't output anything, even though this query from the mongo client gives 2 million results:

      db.oplog.rs.find({ts: {$gte: Timestamp(1343842923000, 0) } }).count()
      

      please help

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            pcmaniac Nemanja Dubravac
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: