mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 19:28:53 +00:00
res_sorcery_realtime.c: Fix unqualified fetch warning.
The allow_unqualified_fetch option for the sorcery realtime backend blocked actually fetching all rows when the option is set to warn. * Made issue a warning and actually do the request when allow_unqualified_fetch=warn is set. Change-Id: I74456c80a03a62dce66fc3dc3cb0cf2351ac4312
This commit is contained in:
@@ -210,8 +210,7 @@ static void sorcery_realtime_retrieve_multiple(const struct ast_sorcery *sorcery
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (config->fetch == UNQUALIFIED_FETCH_WARN) {
|
if (config->fetch == UNQUALIFIED_FETCH_WARN) {
|
||||||
ast_log(LOG_WARNING, "Unqualified fetch attempted on %s\n", config->family);
|
ast_log(LOG_WARNING, "Unqualified fetch requested on %s\n", config->family);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If no fields have been specified we want all rows, so trick realtime into doing it */
|
/* If no fields have been specified we want all rows, so trick realtime into doing it */
|
||||||
|
Reference in New Issue
Block a user