Merge "Explicitly ignore the result of std::async" into main
This commit is contained in:
commit
60dbdaa3fa
1 changed files with 2 additions and 2 deletions
|
|
@ -734,8 +734,8 @@ void Snapuserd::ReadBlocks(const std::string& partition_name, const std::string&
|
|||
off_t offset = 0;
|
||||
|
||||
for (int i = 0; i < num_threads; i++) {
|
||||
std::async(std::launch::async, &Snapuserd::ReadBlocksToCache, this, dm_block_device,
|
||||
partition_name, offset, read_sz_per_thread);
|
||||
(void)std::async(std::launch::async, &Snapuserd::ReadBlocksToCache, this, dm_block_device,
|
||||
partition_name, offset, read_sz_per_thread);
|
||||
|
||||
offset += read_sz_per_thread;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue