提交 8dbfd384 编写于 作者: Z zhangdengyu

fix: 修复告警

Signed-off-by: Nzhangdengyu <zhangdengyu2@huawei.com>
上级 f34762c1
......@@ -581,8 +581,11 @@ static OsBcacheBlock *AllocNewBlock(OsBcache *bc, BOOL read, UINT64 num)
DelBlock(bc, prefer);
}
if (prefer->used) { /* do not combine with next check */
MergeSyncBlocks(bc, prefer); /* prefer->used may be changed here */
}
if (prefer->used) {
MergeSyncBlocks(bc, prefer);
BcacheSyncBlock(bc, prefer);
DelBlock(bc, prefer);
}
......
......@@ -260,7 +260,7 @@ int VnodeDrop(void)
static char *NextName(char *pos, uint8_t *len)
{
char *name = NULL;
while (*pos == '/') {
while (*pos != 0 && *pos == '/') {
pos++;
}
if (*pos == '\0') {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册