Commit 0dd8c0b8 authored by Nils Goroll's avatar Nils Goroll

Fix: wrap the vxid on VSL_IDENTMASK

WHOA - sorry
parent a87b589b
......@@ -129,7 +129,7 @@ VXID_Get(struct worker *wrk, uint32_t mask)
Lck_Lock(&vxid_lock);
v->next = vxid_base;
v->count = vxid_chunk;
vxid_base = (vxid_base + v->count) && VSL_IDENTMASK;
vxid_base = (vxid_base + v->count) & VSL_IDENTMASK;
Lck_Unlock(&vxid_lock);
}
v->count--;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment