From c990e1abc2de3fae0d640063cd254a44dbfc40e4 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 14 Jul 2017 15:21:23 -0400 Subject: [PATCH] crush/CrushWrapper: create_or_move_item whitespace Signed-off-by: Sage Weil --- src/crush/CrushWrapper.cc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/crush/CrushWrapper.cc b/src/crush/CrushWrapper.cc index b805fd97f78..980df214a55 100644 --- a/src/crush/CrushWrapper.cc +++ b/src/crush/CrushWrapper.cc @@ -1028,8 +1028,9 @@ int CrushWrapper::link_bucket(CephContext *cct, int id, const map return insert_item(cct, id, bucket_weight / (float)0x10000, id_name, loc); } -int CrushWrapper::create_or_move_item(CephContext *cct, int item, float weight, string name, - const map& loc) // typename -> bucketname +int CrushWrapper::create_or_move_item( + CephContext *cct, int item, float weight, string name, + const map& loc) // typename -> bucketname { int ret = 0; int old_iweight; @@ -1038,14 +1039,17 @@ int CrushWrapper::create_or_move_item(CephContext *cct, int item, float weight, return -EINVAL; if (check_item_loc(cct, item, loc, &old_iweight)) { - ldout(cct, 5) << "create_or_move_item " << item << " already at " << loc << dendl; + ldout(cct, 5) << "create_or_move_item " << item << " already at " << loc + << dendl; } else { if (_search_item_exists(item)) { weight = get_item_weightf(item); - ldout(cct, 10) << "create_or_move_item " << item << " exists with weight " << weight << dendl; + ldout(cct, 10) << "create_or_move_item " << item + << " exists with weight " << weight << dendl; remove_item(cct, item, true); } - ldout(cct, 5) << "create_or_move_item adding " << item << " weight " << weight + ldout(cct, 5) << "create_or_move_item adding " << item + << " weight " << weight << " at " << loc << dendl; ret = insert_item(cct, item, weight, name, loc); if (ret == 0)