@@ -53,7 +53,6 @@ namespace
5353 {
5454 static constexpr bool lifetime_managed_internally = true ;
5555
56- UpdateAuxImpl *aux;
5756 inflight_map_t &inflights;
5857 Node::SharedPtr parent;
5958 chunk_offset_t rd_offset; // required for sender
@@ -62,10 +61,9 @@ namespace
6261 unsigned const branch_index;
6362
6463 find_receiver (
65- UpdateAuxImpl &aux, inflight_map_t &inflights,
66- Node::SharedPtr parent_, unsigned char const branch)
67- : aux(&aux)
68- , inflights(inflights)
64+ inflight_map_t &inflights, Node::SharedPtr parent_,
65+ unsigned char const branch)
66+ : inflights(inflights)
6967 , parent(std::move(parent_))
7068 , rd_offset(0 , 0 )
7169 , branch_index(parent->to_child_index (branch))
@@ -112,7 +110,7 @@ namespace
112110 {
113111 static constexpr bool lifetime_managed_internally = true ;
114112
115- UpdateAuxImpl * aux;
113+ UpdateAuxImpl & aux;
116114 NodeCache &node_cache;
117115 inflight_map_owning_t &inflights;
118116 chunk_offset_t offset;
@@ -125,7 +123,7 @@ namespace
125123 UpdateAuxImpl &aux, NodeCache &node_cache,
126124 inflight_map_owning_t &inflights, chunk_offset_t const offset,
127125 virtual_chunk_offset_t const virtual_offset)
128- : aux(& aux)
126+ : aux(aux)
129127 , node_cache(node_cache)
130128 , inflights(inflights)
131129 , offset(offset)
@@ -154,7 +152,7 @@ namespace
154152 CacheNodeCursor start_cursor{};
155153 // verify the offset it read is still valid and has not been reused
156154 // to write new data.
157- auto const virtual_offset_after = aux-> physical_to_virtual (offset);
155+ auto const virtual_offset_after = aux. physical_to_virtual (offset);
158156 if (virtual_offset_after == virtual_offset) {
159157 {
160158 NodeCache::ConstAccessor acc;
@@ -270,7 +268,7 @@ void find_notify_fiber_future(
270268 return ;
271269 }
272270 inflights[offset].emplace_back (cont);
273- find_receiver receiver (aux, inflights, std::move (node), branch);
271+ find_receiver receiver (inflights, std::move (node), branch);
274272 detail::initiate_async_read_update (
275273 *aux.io , std::move (receiver), receiver.bytes_to_read );
276274 }
0 commit comments