diff options
author | Dimitri Staessens <[email protected]> | 2018-03-21 17:43:51 +0100 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2018-03-21 17:51:38 +0100 |
commit | fd5508b8daec47e9f646c086d4cc310583154b97 (patch) | |
tree | c27d93cee13d9183eecbef842575f94848b2f079 /src/irmd/main.c | |
parent | 4230103ff633904c69cc18d861bf42781f57bb64 (diff) | |
download | ouroboros-fd5508b8daec47e9f646c086d4cc310583154b97.tar.gz ouroboros-fd5508b8daec47e9f646c086d4cc310583154b97.zip |
irmd: Remove obsolete layer to name mappings
The IRMd kept a mapping from layer names to registered names, but this
is obsolete since the introduction of the query functionality.
Signed-off-by: Dimitri Staessens <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/irmd/main.c')
-rw-r--r-- | src/irmd/main.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c index f9cb8fd2..411df6dd 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -964,13 +964,6 @@ static int name_reg(const char * name, pthread_rwlock_wrlock(&irmd.reg_lock); - if (registry_add_name_to_layer(&irmd.registry, - name, - e->layer_name, - e->type) < 0) - log_warn("Registered unbound name %s. " - "Registry may be corrupt.", - name); log_info("Registered %s in %s as " HASH_FMT ".", name, e->layer_name, HASH_VAL(hash)); ++ret; @@ -1035,9 +1028,6 @@ static int name_unreg(const char * name, pthread_rwlock_wrlock(&irmd.reg_lock); - registry_del_name_from_layer(&irmd.registry, - name, - e->layer_name); log_info("Unregistered %s from %s.", name, e->layer_name); ++ret; |