Compare commits

...

2 Commits

Author SHA1 Message Date
prerit 3a00304c7b update point_lock_manager.cc 2025-03-27 10:47:48 -07:00
prerit 7d971cbd33 Check for yields while waiting for lock in a loop 2025-03-27 10:38:01 -07:00
@@ -318,6 +318,9 @@ Status PointLockManager::AcquireWithTimeout(
} else {
uint64_t now = env->NowMicros();
if (static_cast<uint64_t>(cv_end_time) > now) {
// This may be invoked multiple times since we divide
// the time into smaller intervals.
(void)ROCKSDB_THREAD_YIELD_CHECK_ABORT();
result = stripe->stripe_cv->WaitFor(stripe->stripe_mutex,
cv_end_time - now);
}