mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53: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;
|
||||
}
|
||||
int hash = session % HASH_SIZE;
|
||||
assert(t->session == 0);
|
||||
assert(t->session == 0 && session !=0);
|
||||
t->session = session;
|
||||
t->prev = NULL;
|
||||
t->next = p->slot[hash];
|
||||
|
||||
Reference in New Issue
Block a user