Code

Add support for multiple metric data-stores.
[sysdb.git] / src / core / plugin.c
index 92fa8866981f6e5b4623100498c04d7e5567f0d8..0bf785d571a29b57ac9ecba7d9f34dd1dc6d6b5a 100644 (file)
@@ -1735,9 +1735,8 @@ sdb_plugin_store_metric(const char *hostname, const char *name,
        if (store) {
                if (store->last_update < last_update)
                        store->last_update = last_update;
-               metric.store.type = store->type;
-               metric.store.id = store->id;
-               metric.store.last_update = store->last_update;
+               metric.stores = store;
+               metric.stores_num = 1;
        }
        metric.last_update = last_update ? last_update : sdb_gettime();
        if (get_interval(SDB_METRIC, cname, -1, NULL, name,