From 2fc022c4cb7fa2448b6d564af1d12828ab102d38 Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Mon, 13 Jul 2020 10:50:27 +0800 Subject: [PATCH] mds/OpenFileTable: add option that disables dirfrags prefetch Dirfrags prefetch may speedup rejoin stage of mds recovery. But it may use lots of memory and cause mds out of memory. Signed-off-by: "Yan, Zheng" (cherry picked from commit cc19fc624b1ee4d7e3248d1dfc8f89f8879a46bf) --- src/common/options.cc | 5 +++++ src/mds/OpenFileTable.cc | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/common/options.cc b/src/common/options.cc index f76a6231494..6ae016f05c5 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -7983,6 +7983,11 @@ std::vector