Skip to content

Commit 892c8d5

Browse files
committed
Drop prefix verification
1 parent b30bcb8 commit 892c8d5

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/pool/pool_disjoint.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,8 @@ umf_result_t disjoint_pool_ctl(void *hPool, int operationType, const char *name,
7575
(void)operationType, (void)queryType;
7676
utils_init_once(&ctl_initialized, initialize_disjoint_ctl);
7777

78-
const char *prefix = "disjoint.";
79-
const char *name_wo_prefix = strstr(name, "disjoint.");
80-
81-
// Check if the name has the prefix
82-
if ((name_wo_prefix = strstr(name, prefix)) == NULL) {
83-
return UMF_RESULT_ERROR_INVALID_ARGUMENT;
84-
}
8578
return ctl_query(&disjoint_ctl_root, hPool, CTL_QUERY_PROGRAMMATIC,
86-
name_wo_prefix, queryType, arg, size);
79+
name, queryType, arg, size);
8780
}
8881

8982
// Temporary solution for disabling memory poisoning. This is needed because

0 commit comments

Comments
 (0)