]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
radosgw-admin: stat orphan objects before reporting leakage
authorYehuda Sadeh <yehuda@redhat.com>
Mon, 4 May 2015 22:24:00 +0000 (15:24 -0700)
committerLoic Dachary <ldachary@redhat.com>
Sun, 30 Aug 2015 15:55:59 +0000 (17:55 +0200)
commitf244b159ac8793c11a5707ea0b104b3180efb58f
tree178e3012cf77ce314cb72c2e8430f2bd28dde1be
parentf80e2b2bc8879d1cc40338816196f51378aaa785
radosgw-admin: stat orphan objects before reporting leakage

We don't want to report new objects as leaked, because they might just
be written, and waiting to be linked to a new object. The number of
seconds prior to the job initialization can be cofigured through
--orphan-stale-secs (by default it's 24h).

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 66b0090023859d97da2bbaca698b6a50c225abd0)
src/rgw/rgw_admin.cc
src/rgw/rgw_orphan.cc
src/rgw/rgw_orphan.h