Skip to content

Commit

Permalink
dont cache object when reclaiming (openzfs#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrens authored Sep 29, 2021
1 parent 3836995 commit bd1e1e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/zfs_object_agent/zettaobject/src/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1989,8 +1989,11 @@ async fn reclaim_frees_object(

let my_shared_state = shared_state.clone();
stream.push(future::ready(async move {
// Bypass object cache so that it isn't added, so that when we
// overwrite it with put(), we don't need to copy the data into the
// cache to invalidate.
let mut phys =
DataObjectPhys::get(&my_shared_state.object_access, my_shared_state.guid, object, false)
DataObjectPhys::get(&my_shared_state.object_access, my_shared_state.guid, object, true)
.await
.unwrap();

Expand Down

0 comments on commit bd1e1e0

Please sign in to comment.