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; }