]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: force recover the oldest missing object if too many logs 12882/head
authorZhiqiang Wang <zhiqiang@xsky.com>
Thu, 5 Jan 2017 06:31:46 +0000 (14:31 +0800)
committerZhiqiang Wang <zhiqiang@xsky.com>
Fri, 13 Jan 2017 05:32:34 +0000 (13:32 +0800)
commit7c41d4cc6d1747a35d3861f339da5bf622c1589b
tree21310657a68297bb8a677a918ba4628c69df86fc
parent5e40b4364224c25659655f59c2c2d6a1dc966d74
osd: force recover the oldest missing object if too many logs

When the oldest missing object of a pg is not recovered in a long
time, pg log is not trimmed because min_last_complete_on_disk is
not going further. This may accumulate too many logs in memory.
Force recover the oldest missing object when the number of logs
exceeds osd_force_recovery_pg_log_entries.

Signed-off-by: Zhiqiang Wang <zhiqiang@xsky.com>
src/common/config_opts.h
src/osd/PrimaryLogPG.cc
src/osd/PrimaryLogPG.h