We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 78af510 + 27f5ba9 commit eb25bf2Copy full SHA for eb25bf2
src/rgw/rgw_datalog.cc
@@ -566,13 +566,17 @@ void RGWDataChangesLog::register_renew(const rgw_bucket_shard& bs)
566
void RGWDataChangesLog::update_renewed(const rgw_bucket_shard& bs,
567
real_time expiration)
568
{
569
- std::scoped_lock l{lock};
+ std::unique_lock l{lock};
570
ChangeStatusPtr status;
571
_get_change(bs, status);
572
+ l.unlock();
573
+
574
575
ldout(cct, 20) << "RGWDataChangesLog::update_renewd() bucket_name="
576
<< bs.bucket.name << " shard_id=" << bs.shard_id
577
<< " expiration=" << expiration << dendl;
578
579
+ std::unique_lock sl(status->lock);
580
status->cur_expiration = expiration;
581
}
582
0 commit comments