]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: check agent_mode if agent is enabled but hit_sets aren't
authorSage Weil <sage@redhat.com>
Thu, 31 Jul 2014 16:13:11 +0000 (09:13 -0700)
committerSage Weil <sage@redhat.com>
Thu, 31 Jul 2014 18:03:18 +0000 (11:03 -0700)
commit5d1c76f641310f5f65600f70ae76945b2aa472d7
treeeb563a1337ea02363c8c77d8ae99ea50bcfd4393
parentf3d1f396f9c076d86e4dfa86302c7b89b23b8456
osd/ReplicatedPG: check agent_mode if agent is enabled but hit_sets aren't

It is probably not a good idea to try to run the tiering agent without a
hit_set to inform its actions, but it is technically possible.  For
example, one could simply blindly evict when we reach the full point.
However, this doesn't work because the agent mode is guarded by a hit_set
check, even though agent_setup() is not.  Fix that.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/ReplicatedPG.cc