]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_sorcery_realtime.c: Fix unqualified fetch warning.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 9 Aug 2018 23:46:19 +0000 (18:46 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 17 Aug 2018 21:29:09 +0000 (16:29 -0500)
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

res/res_sorcery_realtime.c

index 101034009f2c9f55bbc49ce7a4c4f5e7833a51ff..31ba2f55526d8945d9acdc1aa21a53e9ee687822 100644 (file)
@@ -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 */