]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crush: revise JSON format for 'item' type 1373/head
authorJohn Spray <john.spray@inktank.com>
Wed, 5 Mar 2014 15:50:53 +0000 (15:50 +0000)
committerJohn Spray <john.spray@inktank.com>
Wed, 5 Mar 2014 16:28:00 +0000 (16:28 +0000)
commit1685c6f75ce40cfd9dadd636004ad06d7bcaabc9
tree32bc32c5333d872ae39db21297b9d748525c83c7
parent8fdfece9fd5419eeb1bc65b3ac4987f6e150fd9f
crush: revise JSON format for 'item' type

Commit a7e9a7b648 changed the JSON format of CRUSH rules
such that the 'item' attribute on a step was sometimes
an integer and sometimes a string.

This commit separates the integer and string representations
so that tools which rely on a 'item' consistently being an
integer ID will work.

Signed-off-by: John Spray <john.spray@inktank.com>
src/crush/CrushWrapper.cc
src/test/crush/TestCrushWrapper.cc
src/test/mon/osd-crush.sh