forked from lei.chen/myxce
support limit
This commit is contained in:
parent
bef32ace38
commit
ecf1916d78
33 changed files with 3036 additions and 243 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue