From be7aecc9564c4e39458e29ad3fd6d0d55eb61b6b Mon Sep 17 00:00:00 2001 From: Wido den Hollander Date: Tue, 27 Jun 2017 16:17:58 +0200 Subject: [PATCH] osd: Execute crush_location_hook when configured in ceph.conf CrushLocation only invoked update_from_conf() which meant that update_from_hook() was never executed. By called init_on_startup() both functions are executed so that the hook is called when configured. Signed-off-by: Wido den Hollander --- src/crush/CrushLocation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crush/CrushLocation.h b/src/crush/CrushLocation.h index b3241eff36c..bba737ecac9 100644 --- a/src/crush/CrushLocation.h +++ b/src/crush/CrushLocation.h @@ -19,7 +19,7 @@ class CrushLocation { public: CrushLocation(CephContext *c) : cct(c) { - update_from_conf(); + init_on_startup(); } int update_from_conf(); ///< refresh from config -- 2.39.5