]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: only register for scrub if we are the PG primary 1396/head 1476/head
authorGuang Yang <yguang@yahoo-inc.com>
Thu, 6 Mar 2014 19:15:48 +0000 (11:15 -0800)
committerSage Weil <sage@inktank.com>
Thu, 6 Mar 2014 19:35:04 +0000 (11:35 -0800)
commit173116faac50e7c5e596ddcf323b8edbe87bfaa2
treeccf81970a2fa16476281761d7866ba5e117153e3
parentd379b1f168556c61ddd47a3e45f37943ffb0dc21
osd: only register for scrub if we are the PG primary

There is no reason to put non-primary PGs on the scrub schedule as they
will be ignored when the worker comes around.  This reduces lock
contention and is generally cleaner.

Signed-off-by: Guang Yang <yguang@yahoo-inc.com>
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/PG.cc