]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crush: remove obsolete comments from link_bucket
authorLoic Dachary <loic@dachary.org>
Fri, 6 Dec 2013 23:27:09 +0000 (00:27 +0100)
committerLoic Dachary <loic@dachary.org>
Fri, 6 Dec 2013 23:27:09 +0000 (00:27 +0100)
Probably copy/pasted from move_bucket.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/crush/CrushWrapper.cc

index a46c80134aadd6c99d05f436dcddc71b8a24d584..691b5dd3afd0b4a9ce8139cc37df963e365134ac 100644 (file)
@@ -460,11 +460,9 @@ int CrushWrapper::link_bucket(CephContext *cct, int id, const map<string,string>
   // get the name of the bucket we are trying to move for later
   string id_name = get_item_name(id);
 
-  // detach the bucket
   crush_bucket *b = get_bucket(id);
   unsigned bucket_weight = b->weight;
 
-  // insert the bucket back into the hierarchy
   return insert_item(cct, id, bucket_weight / (float)0x10000, id_name, loc);
 }