提交 a8c4325a 编写于 作者: 微希夷 提交者: yitter

!3 修复init方法返回值错误

上级 70b10806
......@@ -64,12 +64,12 @@ static int snowdrift_init()
if (shm_alloc(&shmctx) == -1)
{
zend_throw_exception_ex(NULL, 0, "shared memory malloc failed");
RETURN_FALSE;
return FAILURE;
}
if (SD_G(MaxSeqNumber) <= SD_G(MinSeqNumber))
{
zend_throw_exception_ex(NULL, 0, "MaxSeqNumber must GE then MinSeqNumber");
RETURN_FALSE;
return FAILURE;
}
bzero(shmctx.addr, num * sizeof(snowflake));
sf = (snowflake *)shmctx.addr;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册