We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f031d4 commit 9e79452Copy full SHA for 9e79452
runtime/executor/method_meta.cpp
@@ -233,7 +233,7 @@ bool MethodMeta::uses_backend(const char* backend_name) const {
233
const auto delegates = s_plan_->delegates();
234
for (size_t i = 0; i < delegates->size(); i++) {
235
auto delegate = delegates->Get(i);
236
- if (std::strcmp(delegate->id()->c_str(), backend_name) == 0) {
+ if (strncmp(delegate->id()->c_str(), backend_name, delegate->id()->size()) == 0) {
237
return true;
238
}
239
0 commit comments