- 主题:升级后时常出现用户数已满无法注册的问题
shminit以后又可以注册一段时间,但是不知道什么时候就不行了。
errlog发现是libytht/user.c这个部分错误,呵呵
i = deluseridhash("");
if (i <= 0) {
errlog("deluseridhash wrong");
unlock_passwd(lockfd);
return -1;
}
--
FROM 61.242.219.134
deluseridhash哪个地方的问题还要重新errlog
【 在 glutton (拒绝发芽的种子) 的大作中提到: 】
: shminit以后又可以注册一段时间,但是不知道什么时候就不行了。
: errlog发现是libytht/user.c这个部分错误,呵呵
: i = deluseridhash("");
: if (i <= 0) {
: errlog("deluseridhash wrong");
: unlock_passwd(lockfd);
: return -1;
: }
: ...................
--
FROM 61.242.219.134
接着看deluseridhash为什么出错啊
【 在 glutton.bbs@ttsx.cn-bbs.org (拒绝发芽的种子) 的大作中提到: 】
: shminit以后又可以注册一段时间,但是不知道什么时候就不行了。
: errlog发现是libytht/user.c这个部分错误,呵呵
: i = deluseridhash("");
: if (i <= 0) {
: errlog("deluseridhash wrong");
: unlock_passwd(lockfd);
: return -1;
: }
: ...................
--
FROM 220.249.10.36
while (i) {
if (!strcasecmp(userid, passwdptr[i - 1].userid)) {
if (prev != -1) {
errlog("wrong 1");
uhash->next[prev] = uhash->next[i];
} else {
errlog("wrong 2");
uhash->hash_head[h] = uhash->next[i];
}
if (userid[0] == 0)
uhash->next[0]--;
errlog("wrong 3 i is %d",i);
return i;
}
上面的大if不成立,直接到这里,循环结束后就return -1了
prev = i;
i = uhash->next[i];
}
return -1;
【 在 yuhuan.bbs@ytht.net (板砖王) 的大作中提到: 】
: 接着看deluseridhash为什么出错啊
: 【 在 glutton.bbs@ttsx.cn-bbs.org (拒绝发芽的种子) 的大作中提到: 】
: : shminit以后又可以注册一段时间,但是不知道什么时候就不行了。
: : errlog发现是libytht/user.c这个部分错误,呵呵
: : i = deluseridhash("");
: : if (i <= 0) {
: : errlog("deluseridhash wrong");
: : unlock_passwd(lockfd);
: ...................
--
FROM 61.242.219.134
while (i) {
if (!strcasecmp(userid, passwdptr[i - 1].userid)) {
if (prev != -1) {
errlog("wrong 1");
uhash->next[prev] = uhash->next[i];
} else {
errlog("wrong 2");
uhash->hash_head[h] = uhash->next[i];
}
if (userid[0] == 0)
uhash->next[0]--;
errlog("wrong 3 i is %d",i);
return i;
}
其中大if 不成立,直接到这里,循环结束后就return -1了
prev = i;
i = uhash->next[i];
}
return -1;
【 在 yuhuan.bbs@ytht.net (板砖王) 的大作中提到: 】
: 接着看deluseridhash为什么出错啊
: 【 在 glutton.bbs@ttsx.cn-bbs.org (拒绝发芽的种子) 的大作中提到: 】
: : shminit以后又可以注册一段时间,但是不知道什么时候就不行了。
: : errlog发现是libytht/user.c这个部分错误,呵呵
: : i = deluseridhash("");
: : if (i <= 0) {
: : errlog("deluseridhash wrong");
: : unlock_passwd(lockfd);
: ...................
--
FROM 61.242.219.134
i是几?shm有错
【 在 glutton.bbs@ttsx.cn-bbs.org (拒绝发芽的种子) 的大作中提到: 】
: while (i) {
: if (!strcasecmp(userid, passwdptr[i - 1].userid)) {
: if (prev != -1) {
: errlog("wrong 1");
: uhash->next[prev] = uhash->next[i];
: } else {
: errlog("wrong 2");
: uhash->hash_head[h] = uhash->next[i];
: ...................
--
FROM 220.249.10.36
16
【 在 yuhuan (板砖王) 的大作中提到: 】
: i是几?shm有错
: 【 在 glutton.bbs@ttsx.cn-bbs.org (拒绝发芽的种子) 的大作中提到: 】
: : while (i) {
: : if (!strcasecmp(userid, passwdptr[i - 1].userid)) {
: : if (prev != -1) {
: : errlog("wrong 1");
: : uhash->next[prev] = uhash->next[i];
: : } else {
: ...................
--
FROM 61.242.219.134
passwdptr[i - 1].userid 呢?
【 在 glutton (液态蛇) 的大作中提到: 】
: 16
: 【 在 yuhuan (板砖王) 的大作中提到: 】
: : i是几?shm有错
: : ...................
--
FROM 220.249.10.36
faint,注册hello
passwdptr[i - 1].userid是wenwen,一个站内用户
【 在 yuhuan (板砖王) 的大作中提到: 】
: passwdptr[i - 1].userid 呢?
: 【 在 glutton (液态蛇) 的大作中提到: 】
: : 16
--
FROM 61.242.219.134
你的shm建的有问题..
【 在 glutton (液态蛇) 的大作中提到: 】
: faint,注册hello
: passwdptr[i - 1].userid是wenwen,一个站内用户
: 【 在 yuhuan (板砖王) 的大作中提到: 】
: : passwdptr[i - 1].userid 呢?
--
FROM 220.249.10.36