RPM Community Forums

Mailing List Message of <rpm-devel>

A fully cross-platform rpmdb

From: Jeff Johnson <n3npq@mac.com>
Date: Thu 10 Dec 2009 - 20:51:37 CET
Message-id: <3EA1AB83-A0CC-46B3-B4A7-E014D132CB17@mac.com>
I'm about to check in code that swabs integer keys
to network order in an rpmdb always.

network order is being used so that btree/hash duplicate
sorting can continue to use the default memcmp on octet's
without performance penalty and to eliminate the need
to create custom sort functions.

The only two indices affected when using the default
tag configuration are Installtid and Packagecolor.

(aside)
Removetid will likely be added as an index on
repackaged packages in /var/spool/repackage shortly.

Access of Installtid/Packagecolor (and all other integer indices)
will swab native endian keys during access through the rpmmi iterator, so
the change to network order should (modulo bugs) affect nothing whatsoever in the API.

73 de Jeff
Received on Thu Dec 10 20:52:31 2009
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.