Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
Signed-off-by: Little-Wallace <[email protected]>
  • Loading branch information
Little-Wallace committed Dec 4, 2023
1 parent 4fcabdb commit 03ea2ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ mod tests {
cache_policy: CachePolicy::Fill(CachePriority::High),
must_iterated_end_user_key: Some(Bound::Included(uk.clone())),
max_preload_retry_times: 0,
prefetch_for_large_query: true,
prefetch_for_large_query: false,
});
let mut stats = StoreLocalStatistic::default();
let mut sstable_iter = SstableIterator::create(
Expand Down
4 changes: 4 additions & 0 deletions src/storage/src/hummock/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,9 @@ impl LockTable {
}
};
if let Some(notify) = notify {
println!("try lock");
notify.notified().await;
println!("lock success");
}
LockGuard {
key,
Expand All @@ -644,6 +646,8 @@ impl Drop for LockGuard {
let que = locks.get_mut(&self.key).unwrap();
if let Some(notify) = que.pop_front() {
notify.notify_one();
} else {
locks.remove(&self.key);
}
}
}
Expand Down

0 comments on commit 03ea2ad

Please sign in to comment.