From facf4121a6f3419679e1d6547b238087a2ee8cf8 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Sun, 23 Oct 2022 17:51:18 -0400 Subject: [PATCH] context: remove the one call to operator vector<> method in BtrfsIoctlLogicalInoArgs There's only one user of this method. Open-code it so we can kill the method in libcrucible. Signed-off-by: Zygo Blaxell --- src/bees-context.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bees-context.cc b/src/bees-context.cc index 2f96dcf..83edf30 100644 --- a/src/bees-context.cc +++ b/src/bees-context.cc @@ -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(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);