]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: fix idempotency of 'osd crush add'
authorSage Weil <sage@inktank.com>
Thu, 13 Jun 2013 21:01:01 +0000 (14:01 -0700)
committerSage Weil <sage@inktank.com>
Thu, 13 Jun 2013 21:42:05 +0000 (14:42 -0700)
commit9a7ed0b3f8df5bd74133f216bad61ae71eab0816
treea9a5a392a61e30c3d62d17a93c1cb31edb33a94b
parent7e1cf87b5158c870e2a118ed6d316be8cb9818ce
mon: fix idempotency of 'osd crush add'

If we add an item that already exists in particular position, we should
update instead of inserting it; the CrushWrapper methods are not
idempotent.

Signed-off-by: Sage Weil <sage@inktank.com>
qa/workunits/mon/crush_ops.sh
src/mon/OSDMonitor.cc