]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crush: set min_rep and max_rep depending on mode
authorLoic Dachary <loic@dachary.org>
Thu, 26 Dec 2013 23:10:55 +0000 (00:10 +0100)
committerLoic Dachary <loic@dachary.org>
Thu, 26 Dec 2013 23:10:55 +0000 (00:10 +0100)
commit15b695937be35d666c6e156d18e1cb56fbf0c4a6
tree629dd3f256d3ee06f275282f1035b4a64c5481f4
parentda67f7c3175b704dbc5877a0a145ce2b1fd87f0b
crush: set min_rep and max_rep depending on mode

Assuming firstn is for replica and indep is for erasure. This is a
strong constraint but it is unlikely to make the resulting ruleset unfit
to be used in most cases.

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