Skip to content

Commit

Permalink
resource-query: reinitialize the traverser after attach
Browse files Browse the repository at this point in the history
  • Loading branch information
milroy committed Dec 12, 2024
1 parent 4f775db commit 3d569fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resource/utilities/command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,10 @@ static int remove (std::shared_ptr<resource_context_t> &ctx, std::vector<std::st
std::cerr << "ERROR: " << rd->err_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;
}
Expand Down

0 comments on commit 3d569fe

Please sign in to comment.