]> git.proxmox.com Git - pve-storage.git/commit
avoid unecessary try for over optimization
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 12 Nov 2020 16:31:16 +0000 (17:31 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 12 Nov 2020 16:31:26 +0000 (17:31 +0100)
commit1d95f21615fb837d11c1863217414fb1534c154e
treeb9bc500f6e91bb97e753074cd80dc66cfd5debf4
parentd260b9f357629345ce113140d345c08e9cb23b42
avoid unecessary try for over optimization

That was lots of code and hash map touching for the case where one
avoided a extra stat, which result probably was in the page cache
anyway, for the case that a backup has a comment.

A case which is rather  be unlikely - comments are normally done for
the occasional explicit backup (e.g., before major upgrade, before a
configuration change in that guest, ...), at least not worth some
relatively complicated effort making that sub harder to read and
maintain.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Storage/Plugin.pm