From: "Wei, Jiangang" <weijg.fnst@cn.fujitsu.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: [Qemu-devel] RFC: do we need ordered dict?
Date: Mon, 23 May 2016 10:14:38 +0000 [thread overview]
Message-ID: <1463998435.2087.37.camel@localhost> (raw)
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
next reply other threads:[~2016-05-23 10:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-23 10:14 Wei, Jiangang [this message]
2016-05-23 15:29 ` [Qemu-devel] RFC: do we need ordered dict? Eric Blake
2016-05-31 9:28 ` Daniel P. Berrange
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1463998435.2087.37.camel@localhost \
--to=weijg.fnst@cn.fujitsu.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.