mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
feat(meta): free memory when deleting meta partitions.
close:#1000013477 Signed-off-by: shuqiang-zheng <zhengshuqiang@oppo.com>
This commit is contained in:
parent
501dc61922
commit
324e23d2da
@ -1524,7 +1524,9 @@ func (m *metadataManager) opDeleteMetaPartition(conn net.Conn,
|
||||
os.RemoveAll(conf.RootDir)
|
||||
p.PacketOkReply()
|
||||
m.respondToClientWithVer(conn, p)
|
||||
runtime.GC()
|
||||
go func() {
|
||||
debug.FreeOSMemory()
|
||||
}()
|
||||
log.LogInfof("%s [opDeleteMetaPartition] req: %d - %v, resp: %v",
|
||||
remoteAddr, p.GetReqID(), req, err)
|
||||
return
|
||||
|
||||
Loading…
Reference in New Issue
Block a user