Slight optimization possible in fsavl_create

Description

fsavl_create is part of the ZFS receive code path. It builds up an AVL tree of filesystem information from the replication stream. In one part it checks if an element already exists in the tree and adds it if not, but does so in a way that searches the tree again to ensure we are not inserting a duplicate entry, which we already know not to be the case. This can be trivially optimized to only do the search once.

Problem/Justification

None

Impact

None

Activity

Show:

Ryan Moeller February 22, 2022 at 8:37 PM
Edited

Ryan Moeller February 22, 2022 at 6:59 PM

Ryan Moeller January 26, 2022 at 3:48 PM

Complete

Details

Assignee

Reporter

Labels

Impact

Low

Time remaining

0m

Components

Fix versions

Priority

Katalon Platform

Created July 27, 2021 at 8:25 PM
Updated July 18, 2022 at 1:46 PM
Resolved February 22, 2022 at 9:01 PM