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 b31b082 commit 7a24b5eCopy full SHA for 7a24b5e
runtime/executor/method_meta.cpp
@@ -232,7 +232,7 @@ bool MethodMeta::uses_backend(const char* backend_name) const {
232
const auto delegates = s_plan_->delegates();
233
for (size_t i = 0; i < delegates->size(); i++) {
234
auto delegate = delegates->Get(i);
235
- if (strcmp(delegate->id()->c_str(), backend_name) == 0) {
+ if (strncmp(delegate->id()->c_str(), backend_name, delegate->id()->size()) == 0) {
236
return true;
237
}
238
0 commit comments