Skip to content

Commit e899ef3

Browse files
goffrieConvex, Inc.
authored andcommitted
Remove block_in_place from wait_for_higher_ts (#43141)
This is cheap since we made the WriteLog copy-on-write GitOrigin-RevId: 7f94ab229f05c28db1ece29912fbb10931fdddbd
1 parent 9ddb7cf commit e899ef3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/database/src/write_log.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,9 +397,9 @@ impl LogOwner {
397397

398398
/// Blocks until the log has advanced past the given timestamp.
399399
pub async fn wait_for_higher_ts(&mut self, target_ts: Timestamp) -> Timestamp {
400-
let fut = block_in_place(|| self.inner.lock().wait_for_higher_ts(target_ts));
400+
let fut = self.inner.lock().wait_for_higher_ts(target_ts);
401401
fut.await;
402-
let result = block_in_place(|| self.inner.lock().log.max_ts());
402+
let result = self.inner.lock().log.max_ts();
403403
assert!(result > target_ts);
404404
result
405405
}

0 commit comments

Comments
 (0)