]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush: remove redundant code from move_bucket
authorLoic Dachary <loic@dachary.org>
Fri, 6 Dec 2013 23:21:16 +0000 (00:21 +0100)
committerLoic Dachary <loic@dachary.org>
Fri, 6 Dec 2013 23:21:16 +0000 (00:21 +0100)
commite00324b2bca5bbbdc76182bc09bd15e1d0de930f
treead45dee7037b736ae7b608ff1c0651d8caec069b
parent8ef80a4c6780698d75b9dd20712c23b5feff664a
crush: remove redundant code from move_bucket

The following was introduced in 2012 by a2d0cff1b071bed84ac439e4fcf9ddfb936f89c8

  // un-set the device name so we can use add_item later
  build_rmap(name_map, name_rmap);
  name_map.erase(id);
  name_rmap.erase(id_name);

when insert_item refused to move a bucket for which a name already
exists. It was changed in 2013 by
4e2557a038dc1e8c68993ad8571d74e2eb8ea90a and now supports it. The
TestCrushWrapper unittest for move_bucket pass.

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