diff --git a/src/core/store.c b/src/core/store.c
index be8f9fa259406af1e31a2783560da81ca21776de..30b4d1c367cdc845714c98550501da3c1037f540 100644 (file)
--- a/src/core/store.c
+++ b/src/core/store.c
sdb_host_t *host;
sdb_avltree_t *services;
- sdb_data_t d;
int status = 0;
sdb_object_deref(SDB_OBJ(host));
pthread_rwlock_unlock(&st->host_lock);
-
- if (status)
- return status;
-
- /* record the hostname as an attribute */
- d.type = SDB_TYPE_STRING;
- d.data.string = SDB_OBJ(host)->name;
- if (store_service_attr(hostname, name, "hostname", &d, last_update, user_data))
- status = -1;
return status;
} /* store_service */
sdb_store_obj_t *obj = NULL;
sdb_host_t *host;
sdb_metric_t *metric;
- sdb_data_t d;
sdb_avltree_t *metrics;
if (store_metric_store(metric, store))
status = -1;
pthread_rwlock_unlock(&st->host_lock);
-
- /* record the hostname as an attribute */
- d.type = SDB_TYPE_STRING;
- d.data.string = SDB_OBJ(host)->name;
- if (store_metric_attr(hostname, name, "hostname", &d, last_update, user_data))
- status = -1;
return status;
} /* store_metric */