]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: trim pglog when pg is recovered
authorZhiqiang Wang <zhiqiang@xsky.com>
Wed, 4 Jan 2017 08:34:06 +0000 (16:34 +0800)
committerZhiqiang Wang <zhiqiang@xsky.com>
Fri, 13 Jan 2017 05:19:25 +0000 (13:19 +0800)
commit900e9a8de1f460f76c151ede3548b0728cd4d707
tree985dc8ec4428ccb3f97b78a005a840c3a0676272
parent03db36f35478ee18b4a7cf4d71543faa8894508c
osd: trim pglog when pg is recovered

In the current code, primary initiates pglog trim or peers inform
primary to trim when finishing recovery of the last object on it.
However, the pg is still in degraded/recovering/backfilling state
at that time and then the max log entries are kept. If there are
no IOs on this pg, it will hold up to the max number of log entries
in the memory, even if it's totally recovered.

Signed-off-by: Zhiqiang Wang <zhiqiang@xsky.com>
src/osd/OSD.cc
src/osd/PG.cc
src/osd/PrimaryLogPG.cc