From c63fc964cef1d45fd0a4de9c6715bcd16badc597 Mon Sep 17 00:00:00 2001 From: "Yan, Zheng" Date: Fri, 3 Nov 2017 14:14:07 +0800 Subject: [PATCH] mds: limit size of MExportDir message Only export port of subtree if whole subtree tree is too large for sinlge MExportDir message. The un-exported portion are added to export queue. Fixes: http://tracker.ceph.com/issues/21892 Signed-off-by: "Yan, Zheng" (cherry picked from commit ca5c987860821a7784db1c6a74d1c661cdf427cc) --- src/common/options.cc | 4 ++ src/mds/Migrator.cc | 94 ++++++++++++++++++++++++++++++++++++------- src/mds/Migrator.h | 4 +- 3 files changed, 86 insertions(+), 16 deletions(-) diff --git a/src/common/options.cc b/src/common/options.cc index 65a1502dc205..0dfec7abbf86 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -6162,6 +6162,10 @@ std::vector