From: Danny Al-Gaaf Date: Tue, 31 Jan 2017 21:05:10 +0000 (+0100) Subject: osdc/ObjectCacher.cc: fix wrong self assignment X-Git-Tag: v12.0.1~462^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ea34ee50c9f1724a0186007940eb075d8116c410;p=ceph.git osdc/ObjectCacher.cc: fix wrong self assignment Fix for: CID 1395468 (#1 of 1): Self assignment (NO_EFFECT) self_assign: Assigning bh->last_write to itself has no effect. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/osdc/ObjectCacher.cc b/src/osdc/ObjectCacher.cc index 6d8f018d6bd..1c670419557 100644 --- a/src/osdc/ObjectCacher.cc +++ b/src/osdc/ObjectCacher.cc @@ -1027,7 +1027,7 @@ void ObjectCacher::bh_write_scattered(list& blist) if (bh->snapc.seq > snapc.seq) snapc = bh->snapc; if (bh->last_write > last_write) - bh->last_write = bh->last_write; + last_write = bh->last_write; } C_WriteCommit *oncommit = new C_WriteCommit(this, ob->oloc.pool, ob->get_soid(), ranges);