summaryrefslogtreecommitdiffstats
path: root/registry/registry_internals.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2019-03-16 07:50:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2019-03-16 07:50:20 +0000
commitb26be28df9fd4db2106cc2a557966c9d2a7345d9 (patch)
tree437e6106c0aa2e73f2dd68d0551545ae503f60d7 /registry/registry_internals.c
parentAdding upstream version 1.12.2. (diff)
downloadnetdata-b26be28df9fd4db2106cc2a557966c9d2a7345d9.tar.xz
netdata-b26be28df9fd4db2106cc2a557966c9d2a7345d9.zip
Adding upstream version 1.13.0.upstream/1.13.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'registry/registry_internals.c')
-rw-r--r--registry/registry_internals.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/registry/registry_internals.c b/registry/registry_internals.c
index b54b90142..3de6dd17b 100644
--- a/registry/registry_internals.c
+++ b/registry/registry_internals.c
@@ -126,6 +126,11 @@ REGISTRY_PERSON_URL *registry_verify_request(char *person_guid, char *machine_gu
info("Registry Request Verification: URL not found for person, person: '%s', machine '%s', url '%s'", person_guid, machine_guid, url);
return NULL;
}
+ //else if (pu->machine != m) {
+ // info("Registry Request Verification: Machine mismatch: person: '%s', machine requested='%s' <> loaded='%s', url '%s'", person_guid, machine_guid, pu->machine->guid, url);
+ // return NULL;
+ //}
+
return pu;
}
@@ -171,11 +176,13 @@ REGISTRY_PERSON *registry_request_delete(char *person_guid, char *machine_guid,
delete_url = registry_fix_url(delete_url, NULL);
// make sure the user is not deleting the url it uses
+ /*
if(!strcmp(delete_url, pu->url->url)) {
info("Registry Delete Request: delete URL is the one currently accessed, person: '%s', machine '%s', url '%s', delete url '%s'"
, p->guid, m->guid, pu->url->url, delete_url);
return NULL;
}
+ */
REGISTRY_PERSON_URL *dpu = registry_person_url_index_find(p, delete_url);
if(!dpu) {