Spelling database (#10914)
Josh Soref committed
Apr 14, 2021 at 05:34 UTC
2a4650607a95ff1b54d433d6cec27a172461e1a5
6 files changed
+11
-11
database/engine/metadata_log/metadatalog.h
+1
-1
@@ -12,7 +12,7 @@
12
#include "metadatalogapi.h"
13
#include "compaction.h"
14
15
-/* Forward declerations */
15
+/* Forward declarations */
16
struct metalog_instance;
17
struct parser_user_object;
18
database/engine/pagecache.c
+1
-1
@@ -3,7 +3,7 @@
3
4
#include "rrdengine.h"
5
6
-/* Forward declerations */
6
+/* Forward declarations */
7
static int pg_cache_try_evict_one_page_unsafe(struct rrdengine_instance *ctx);
8
9
/* always inserts into tail */
database/engine/rrdengine.h
+1
-1
@@ -26,7 +26,7 @@
26
27
#endif /* NETDATA_RRD_INTERNALS */
28
29
-/* Forward declerations */
29
+/* Forward declarations */
30
struct rrdengine_instance;
31
32
#define MAX_PAGES_PER_EXTENT (64) /* TODO: can go higher only when journal supports bigger than 4KiB transactions */
database/engine/rrdengineapi.c
+2
-2
@@ -32,7 +32,7 @@ void rrdeng_generate_legacy_uuid(const char *dim_id, char *chart_id, uuid_t *ret
32
memcpy(ret_uuid, hash_value, sizeof(uuid_t));
33
}
34
35
-/* Transform legacy UUID to be unique across hosts deterministacally */
35
+/* Transform legacy UUID to be unique across hosts deterministically */
36
void rrdeng_convert_legacy_uuid_to_multihost(char machine_guid[GUID_LEN + 1], uuid_t *legacy_uuid, uuid_t *ret_uuid)
37
{
38
EVP_MD_CTX *evpctx;
@@ -359,7 +359,7 @@ static inline uint32_t *pginfo_to_points(struct rrdeng_page_info *page_info)
359
* reference dimension that that have different data collection intervals and overlap with the time range
360
* [start_time,end_time]. The caller must free (*region_info_arrayp) with freez(). If region_info_arrayp is set
361
* to NULL nothing was allocated.
362
- * @param max_intervalp is derefenced and set to be the largest data collection interval of all regions.
362
+ * @param max_intervalp is dereferenced and set to be the largest data collection interval of all regions.
363
* @return number of regions with different data collection intervals.
364
*/
365
unsigned rrdeng_variable_step_boundaries(RRDSET *st, time_t start_time, time_t end_time,
database/rrd.h
+1
-1
@@ -819,7 +819,7 @@ struct rrdhost {
819
char *health_default_exec; // the full path of the alarms notifications program
820
char *health_default_recipient; // the default recipient for all alarms
821
char *health_log_filename; // the alarms event log filename
822
- size_t health_log_entries_written; // the number of alarm events writtern to the alarms event log
822
+ size_t health_log_entries_written; // the number of alarm events written to the alarms event log
823
FILE *health_log_fp; // the FILE pointer to the open alarms event log file
824
uint32_t health_default_warn_repeat_every; // the default value for the interval between repeating warning notifications
825
uint32_t health_default_crit_repeat_every; // the default value for the interval between repeating critical notifications
database/rrddim.c
+5
-5
@@ -187,14 +187,14 @@ void rrdcalc_link_to_rrddim(RRDDIM *rd, RRDSET *st, RRDHOST *host) {
187
for (rrdc = host->alarms_with_foreach; rrdc ; rrdc = rrdc->next) {
188
if (simple_pattern_matches(rrdc->spdim, rd->id) || simple_pattern_matches(rrdc->spdim, rd->name)) {
189
if (rrdc->hash_chart == st->hash_name || !strcmp(rrdc->chart, st->name) || !strcmp(rrdc->chart, st->id)) {
190
- char *usename = alarm_name_with_dim(rrdc->name, strlen(rrdc->name), rd->name, strlen(rd->name));
191
- if (usename) {
192
- if(rrdcalc_exists(host, st->name, usename, 0, 0)){
193
- freez(usename);
190
+ char *name = alarm_name_with_dim(rrdc->name, strlen(rrdc->name), rd->name, strlen(rd->name));
191
+ if (name) {
192
+ if(rrdcalc_exists(host, st->name, name, 0, 0)){
193
+ freez(name);
194
continue;
195
}
196
197
- RRDCALC *child = rrdcalc_create_from_rrdcalc(rrdc, host, usename, rd->name);
197
+ RRDCALC *child = rrdcalc_create_from_rrdcalc(rrdc, host, name, rd->name);
198
if (child) {
199
rrdcalc_add_to_host(host, child);
200
RRDCALC *rdcmp = (RRDCALC *) avl_insert_lock(&(host)->alarms_idx_health_log,(avl_t *)child);