]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: redirect reads instead of promoting when full
authorSage Weil <sage@inktank.com>
Tue, 11 Feb 2014 22:01:10 +0000 (14:01 -0800)
committerSage Weil <sage@inktank.com>
Sun, 16 Feb 2014 06:09:39 +0000 (22:09 -0800)
commit85e06f9d05f3bf009a0d08a9a298c721ee2fb4f7
treebaedae1f4e17525b1fb24f98f9508a09523a6a32
parentb92c79d2002b2a195d4d7ec2e6ced3a852828955
osd/ReplicatedPG: redirect reads instead of promoting when full

If the cache pool is full, we are processing a read op, and we would
otherwise promote, redirect instead.  This lets us continue to process the
op without blocking or making the cache pool any more full than it is.

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