From: Richard Mudgett Date: Thu, 9 Aug 2018 23:46:19 +0000 (-0500) Subject: res_sorcery_realtime.c: Fix unqualified fetch warning. X-Git-Tag: 15.6.0-rc1~11^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f98f49e43491373b52ad0821c55cc02b6b659fd;p=thirdparty%2Fasterisk.git 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 --- diff --git a/res/res_sorcery_realtime.c b/res/res_sorcery_realtime.c index 101034009f..31ba2f5552 100644 --- a/res/res_sorcery_realtime.c +++ b/res/res_sorcery_realtime.c @@ -208,8 +208,7 @@ static void sorcery_realtime_retrieve_multiple(const struct ast_sorcery *sorcery return; } if (config->fetch == UNQUALIFIED_FETCH_WARN) { - ast_log(LOG_WARNING, "Unqualified fetch attempted on %s\n", config->family); - return; + ast_log(LOG_WARNING, "Unqualified fetch requested on %s\n", config->family); } /* If no fields have been specified we want all rows, so trick realtime into doing it */