qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] RFC: do we need ordered dict?
@ 2016-05-23 10:14 Wei, Jiangang
  2016-05-23 15:29 ` Eric Blake
  0 siblings, 1 reply; 3+ messages in thread
From: Wei, Jiangang @ 2016-05-23 10:14 UTC (permalink / raw)
  Cc: qemu-devel@nongnu.org

Hi all,

I found a problem about the output of 'query-version'

As the qmp-command.hx said, it shoud be 
-> { "execute": "query-version" }
<- {
      "return":{
         "qemu":{
            "major":0,
            "minor":11,
            "micro":5
         },
         "package":""
      }
   }

Actually, It's as following,
-> { "execute": "query-version" }
<- {
      "return":{
         "qemu":{
            "micro":50,
            "minor":6,
            "major":2
         },
         "package":""
      }
   }

The reason is that the member ''qemu" is regarded as Un-ordered dict.
and  tdb_hash() returns the same bucket(225) for both  "micro" and
"minor". 
and The "major" is bigger (481).

All of the above metioned introduces the disorder for major , minor and
micro.

Thanks,
wei




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-05-31  9:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-23 10:14 [Qemu-devel] RFC: do we need ordered dict? Wei, Jiangang
2016-05-23 15:29 ` Eric Blake
2016-05-31  9:28   ` Daniel P. Berrange

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).