summaryrefslogtreecommitdiffstats
path: root/src/osdc
diff options
context:
space:
mode:
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>2017-01-31 22:05:10 +0100
committerSage Weil <sage@redhat.com>2017-02-09 03:54:25 +0100
commitea34ee50c9f1724a0186007940eb075d8116c410 (patch)
treeb4e782c8b7282768ea89180c2bd4c72409b92dcb /src/osdc
parentcommon/Checksummer.h: close resource leak (diff)
downloadceph-ea34ee50c9f1724a0186007940eb075d8116c410.tar.xz
ceph-ea34ee50c9f1724a0186007940eb075d8116c410.zip
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 <danny.al-gaaf@bisect.de>
Diffstat (limited to 'src/osdc')
-rw-r--r--src/osdc/ObjectCacher.cc2
1 files changed, 1 insertions, 1 deletions
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<BufferHead*>& 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);