"vscode:/vscode.git/clone" did not exist on "8858725554e0be3e974f371910032eb11877902a"
Unverified Commit 53976fce authored by ykwd's avatar ykwd Committed by GitHub
Browse files

[Hicache] Generic page get bugfix (#9909)

parent 18f91eb6
......@@ -659,13 +659,14 @@ class HiCacheController:
f"Prefetch operation {operation.request_id} failed to retrieve page {hash_values[i]}."
)
break
if operation.increment(self.page_size):
self.mem_pool_host.set_from_flat_data_page(
host_indices[i * self.page_size],
page_data[i],
)
else:
break
# Must set the data before increasing the completed tokens.
# Otherwise this page may be read before being set.
self.mem_pool_host.set_from_flat_data_page(
host_indices[i * self.page_size],
page_data[i],
)
if not operation.increment(self.page_size):
break # Operation terminated by controller
def _page_transfer(self, operation):
# Select the get function and batch size
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment