mirror of
https://github.com/ceph/ceph
synced 2025-02-22 10:37:15 +00:00
osdc/Objecter: linger_register now acquires rwlock
Previously linger_register just created a RWLock::Context which does not result in the lock being acquired. Fixes: #10827 Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
parent
b025fbfa22
commit
5b75e30431
@ -658,7 +658,7 @@ Objecter::LingerOp *Objecter::linger_register(const object_t& oid,
|
||||
info->target.flags = flags;
|
||||
info->watch_valid_thru = ceph_clock_now(NULL);
|
||||
|
||||
RWLock::Context lc(rwlock, RWLock::Context::TakenForWrite);
|
||||
RWLock::WLocker l(rwlock);
|
||||
|
||||
// Acquire linger ID
|
||||
info->linger_id = ++max_linger_id;
|
||||
|
Loading…
Reference in New Issue
Block a user