Code

store: Fixed a typo in the type check of the child matcher.
authorSebastian Harl <sh@tokkee.org>
Thu, 23 Oct 2014 06:08:21 +0000 (08:08 +0200)
committerSebastian Harl <sh@tokkee.org>
Thu, 23 Oct 2014 06:08:21 +0000 (08:08 +0200)
src/core/store_lookup.c

index e2ae0669f3cdc64300d5a8d49ecc3b032deea49a..6613c21f503b375456661af679a9218485d5ddff 100644 (file)
@@ -184,7 +184,7 @@ match_child(sdb_store_matcher_t *m, sdb_store_obj_t *obj,
                iter = sdb_avltree_get_iter(HOST(obj)->services);
        else if (m->type == MATCHER_METRIC)
                iter = sdb_avltree_get_iter(HOST(obj)->metrics);
-       else if (m->type == SDB_ATTRIBUTE)
+       else if (m->type == MATCHER_ATTRIBUTE)
                iter = sdb_avltree_get_iter(HOST(obj)->attributes);
 
        while (sdb_avltree_iter_has_next(iter)) {