]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: do not clobber log on backfill progress update
authorSage Weil <sage.weil@dreamhost.com>
Thu, 19 Jan 2012 02:01:09 +0000 (18:01 -0800)
committerSage Weil <sage@newdream.net>
Mon, 23 Jan 2012 17:02:14 +0000 (09:02 -0800)
This is unnecessary and counterproductive, since the log is used to detect
dup ops.  It's an artifact of an earlier backfill iteration that didn't
preserve the log on the backfill target.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/osd/ReplicatedPG.cc

index b81a03848bbe688d7556555f3fc4f9552270df71..335779ff1d4239ac3f9c51b9f36b418b69a08219 100644 (file)
@@ -984,14 +984,7 @@ void ReplicatedPG::do_backfill(MOSDPGBackfill *m)
       info.last_backfill = m->last_backfill;
       info.stats.stats = m->stats;
 
-      log.clear();
-      log.head = info.last_update;
-      log.tail = info.last_update;
-
-      info.log_tail = log.tail;
-
       ObjectStore::Transaction *t = new ObjectStore::Transaction;
-      write_log(*t);
       write_info(*t);
       int tr = osd->store->queue_transaction(&osr, t);
       assert(tr == 0);