]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix trimming object expirer's hints.
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Fri, 15 Jul 2016 15:05:37 +0000 (17:05 +0200)
committerRadoslaw Zarzynski <rzarzynski@mirantis.com>
Fri, 15 Jul 2016 15:41:55 +0000 (17:41 +0200)
Fixes: http://tracker.ceph.com/issues/16684
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
src/rgw/rgw_object_expirer_core.cc
src/rgw/rgw_object_expirer_core.h

index a06e267ad6823736b67ef54014fceb3f815f8211..1955d6978018d7d55eccc9ccc910fe48cd53865e 100644 (file)
@@ -124,15 +124,19 @@ void RGWObjectExpirer::garbage_chunk(list<cls_timeindex_entry>& entries,      /*
 }
 
 void RGWObjectExpirer::trim_chunk(const string& shard,
-                               const utime_t& from,
-                               const utime_t& to)
+                                  const utime_t& from,
+                                  const utime_t& to,
+                                  const string& from_marker,
+                                  const string& to_marker)
 {
-  ldout(store->ctx(), 20) << "trying to trim removal hints to  " << to << dendl;
+  ldout(store->ctx(), 20) << "trying to trim removal hints to=" << to
+                          << ", to_marker=" << to_marker << dendl;
 
   real_time rt_from = from.to_real_time();
   real_time rt_to = to.to_real_time();
 
-  int ret = store->objexp_hint_trim(shard, rt_from, rt_to);
+  int ret = store->objexp_hint_trim(shard, rt_from, rt_to,
+                                    from_marker, to_marker);
   if (ret < 0) {
     ldout(store->ctx(), 0) << "ERROR during trim: " << ret << dendl;
   }
@@ -182,7 +186,7 @@ void RGWObjectExpirer::process_single_shard(const string& shard,
     garbage_chunk(entries, need_trim);
 
     if (need_trim) {
-      trim_chunk(shard, last_run, round_start);
+      trim_chunk(shard, last_run, round_start, marker, out_marker);
     }
 
     utime_t now = ceph_clock_now(g_ceph_context);
index 284dc14df8d45734ebe36b8ad40a08bd332ff407..aa13e0098c70aefd7f1662f9230a4e9312a06b0a 100644 (file)
@@ -73,7 +73,9 @@ public:
 
   void trim_chunk(const string& shard,
                   const utime_t& from,
-                  const utime_t& to);
+                  const utime_t& to,
+                  const string& from_marker,
+                  const string& to_marker);
 
   void process_single_shard(const string& shard,
                             const utime_t& last_run,