mirror of
https://github.com/ceph/ceph
synced 2025-03-09 09:48:09 +00:00
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>
This commit is contained in:
parent
79dbe984c9
commit
ea34ee50c9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user