]> git.hungrycats.org Git - bees/commitdiff
context: remove the one call to operator vector<> method in BtrfsIoctlLogicalInoArgs
authorZygo Blaxell <bees@furryterror.org>
Sun, 23 Oct 2022 21:51:18 +0000 (17:51 -0400)
committerZygo Blaxell <bees@furryterror.org>
Mon, 23 Jan 2023 05:09:26 +0000 (00:09 -0500)
There's only one user of this method.  Open-code it so we can kill the
method in libcrucible.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
src/bees-context.cc

index 2f96dcf259f062bfce82d7074cd3458d6250cf0e..83edf30b500ef196b6b0ae62ba73c4bf2987f706 100644 (file)
@@ -812,7 +812,7 @@ BeesContext::resolve_addr_uncached(BeesAddress addr)
        // Avoid performance problems - pretend resolve failed if there are too many refs
        const size_t rv_count = log_ino.m_iors.size();
        if (rv_count < BEES_MAX_EXTENT_REF_COUNT) {
-               rv.m_biors = log_ino.m_iors;
+               rv.m_biors = vector<BtrfsInodeOffsetRoot>(log_ino.m_iors.begin(), log_ino.m_iors.end());
        } else {
                BEESLOGINFO("addr " << addr << " refs " << rv_count << " overflows configured ref limit " << BEES_MAX_EXTENT_REF_COUNT);
                BEESCOUNT(resolve_overflow);