Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-381

new bsondump prints type=255 for MinKey, but legacy prints -1

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      When running with type=debug, new bsondump will print an object with a Min Key as

      --- new object ---
      	size : 40
      		_id
      			type:    7 size: 17
      		type
      			type:    2 size: 14
      		ex
      			type:  255 size: 4

      However, c++ bsondump prints

      --- new object ---
      	 size : 40
      		 _id
      			 type:  7 size: 17
      		 type
      			 type:  2 size: 14
      		 ex
      			 type: -1 size: 4

      We should probably go with -1, for consistency with http://docs.mongodb.org/manual/reference/operator/query/type/

      Attachments

        Activity

          People

            mikeo@mongodb.com Michael O'Brien
            kyle.erf Kyle Erf
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: