chiark / gitweb /
unit: place reservations before merging other's dependencies
authorMichal Schmidt <mschmidt@redhat.com>
Tue, 14 Oct 2014 22:00:30 +0000 (00:00 +0200)
committerMichal Schmidt <mschmidt@redhat.com>
Thu, 23 Oct 2014 15:38:02 +0000 (17:38 +0200)
commit09a65f92994445d8fecca34e71b423a8be1769bf
treeac7080ec3dce8acdd8f79f99eb7c04e7127f89e0
parent2d5c93c7af05bfa25cad85909acdb7b0bfc3f4e1
unit: place reservations before merging other's dependencies

With the hashmap implementation that uses chaining the reservations
merely ensure that the merging won't result in long bucket chains.

With a future alternative implementation it will additionally reserve
memory to make sure the merging won't fail.
src/core/unit.c