From 478cbd312588c1a6c0e7fc101c179b13b168e2a8 Mon Sep 17 00:00:00 2001 From: Daniel Milroy Date: Wed, 11 Dec 2024 16:31:06 -0800 Subject: [PATCH] resource-query: reinitialize the traverser after attach --- resource/utilities/command.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resource/utilities/command.cpp b/resource/utilities/command.cpp index 94e9ecc06..d637358bf 100644 --- a/resource/utilities/command.cpp +++ b/resource/utilities/command.cpp @@ -558,7 +558,10 @@ static int remove (std::shared_ptr &ctx, std::vectorerr_message (); return -1; } - // TODO: reinitialize the traverser, see issue #1075 + if (ctx->traverser->initialize (ctx->db, ctx->matcher) != 0) { + std::cerr << "ERROR: can't reinitialize traverser after attach" << std::endl; + return -1; + } return 0; }