修复log记录错误(第一个节点无法落盘),更新http解析为现成库实现,优化退出逻辑。
This commit is contained in:
@ -211,9 +211,11 @@ int infifo(Ctl *self,const char *cmd)
|
||||
//存储命令历史s
|
||||
if(self->index<HISTORY_BUF){
|
||||
self->index++;
|
||||
return 0;
|
||||
}
|
||||
else{
|
||||
self->index = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user