]> granicus.if.org Git - libnl/commit
Default to comparing all attributes if no oo_id_attrs defined
authorAndrew Collins <bsderandrew@gmail.com>
Mon, 17 Jun 2013 21:24:05 +0000 (15:24 -0600)
committerThomas Graf <tgraf@suug.ch>
Wed, 26 Jun 2013 23:12:28 +0000 (01:12 +0200)
commit87bbfb6b12322d79abc979d6a001c18eb875ae45
treeb7455fb3a2150b6b7defd69ffaa7acafed1c783b
parentc1de0f3129fe699ff838d4b0ddcfddb5e67ef777
Default to comparing all attributes if no oo_id_attrs defined

Since commit: "cache pickup: Avoid duplicates during cache pickup",
nfnl_ct_alloc_cache no longer properly fills the cache, as it doesn't
define oo_id_attrs so all items are considered duplicates.

Instead of adding a ~0 oo_id_attrs to ct_obj, this changes
nl_object_identical to default to comparing all attributes if
neither oo_id_attrs_get or oo_id_attrs are provided.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
lib/object.c