]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: MDS data and metadata pool numbers are hardcoded
authorLoic Dachary <loic@dachary.org>
Wed, 25 Dec 2013 12:30:34 +0000 (13:30 +0100)
committerLoic Dachary <loic@dachary.org>
Thu, 26 Dec 2013 08:12:03 +0000 (09:12 +0100)
commit20b3da059d2ed9b5a797f020d4dc097667a05add
tree4caacbde098dc601993d6bd75ff6d5ae4365012f
parent21a64c172c84b91f969b9eeee9f67ceb9056611b
mon: MDS data and metadata pool numbers are hardcoded

The MDS assumes pool 0 and 1 are suitable for data and metadata
respectively. Instead of relying on the CEPH_DATA_RULE and
CEPH_METADATA_RULE constants that only match by chance, set a hardcoded
value specific to MDS to reduce the fragility of the hardcoded
assumption.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/mds/Dumper.cc
src/mds/Resetter.cc
src/mds/mdstypes.h
src/mon/MDSMonitor.cc