mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
add assert to trace_register
This commit is contained in:
@@ -87,7 +87,7 @@ trace_register(struct trace_pool *p, int session) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int hash = session % HASH_SIZE;
|
int hash = session % HASH_SIZE;
|
||||||
assert(t->session == 0);
|
assert(t->session == 0 && session !=0);
|
||||||
t->session = session;
|
t->session = session;
|
||||||
t->prev = NULL;
|
t->prev = NULL;
|
||||||
t->next = p->slot[hash];
|
t->next = p->slot[hash];
|
||||||
|
|||||||
Reference in New Issue
Block a user