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

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      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/

            Assignee:
            Michael O'Brien
            Reporter:
            Kyle Erf (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: