support limit

This commit is contained in:
Rongsong Shen 2026-01-12 15:20:51 +08:00
parent bef32ace38
commit ecf1916d78
33 changed files with 3036 additions and 243 deletions

View file

@ -784,7 +784,8 @@ static void* xqueue_create(objmgr_t* mgr, objtype_t* typeval, va_list ap)
}
if (q->queue.users != NULL) {
q1->queue.users = (xce_group_t*)calloc(1, sizeof(xce_group_t));
q1->queue.users
= (xce_group_config_t*)calloc(1, sizeof(xce_group_config_t));
if (q1->queue.users == NULL) {
queue_obj_killer(q1);
SET_ERROR(ENOMEM);
@ -826,7 +827,8 @@ static void* xqueue_create(objmgr_t* mgr, objtype_t* typeval, va_list ap)
}
}
if (q->queue.hosts != NULL) {
q1->queue.hosts = (xce_group_t*)calloc(1, sizeof(xce_group_t));
q1->queue.hosts
= (xce_group_config_t*)calloc(1, sizeof(xce_group_config_t));
if (q1->queue.hosts == NULL) {
queue_obj_killer(q1);
SET_ERROR(ENOMEM);