From b037302b3ca9ec2908e56943f1b6b34f478ea5b5 Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Thu, 5 Nov 2020 08:21:22 +0000 Subject: [PATCH] TD-1949 --- src/wal/src/walWrite.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/wal/src/walWrite.c b/src/wal/src/walWrite.c index 470607e965..194c50264f 100644 --- a/src/wal/src/walWrite.c +++ b/src/wal/src/walWrite.c @@ -143,12 +143,7 @@ int32_t walRestore(void *handle, void *pVnode, FWalWrite writeFp) { continue; } - if (!pWal->keep) { - wDebug("vgId:%d, file:%s, restore success, remove this file", pWal->vgId, walName); - remove(walName); - } else { - wDebug("vgId:%d, file:%s, restore success and keep it", pWal->vgId, walName); - } + wDebug("vgId:%d, file:%s, restore success and keep it", pWal->vgId, walName); count++; }