[Asterisk-code-review] res config pgsql: Make 'require' return consistent with othe... (asterisk[13])

Sean Bright asteriskteam at digium.com
Wed Mar 1 07:27:34 CST 2017


Sean Bright has uploaded a new change for review. ( https://gerrit.asterisk.org/5110 )

Change subject: res_config_pgsql: Make 'require' return consistent with other backends
......................................................................

res_config_pgsql: Make 'require' return consistent with other backends

res_config_pgsql should match the behavior of other realtime backend
drivers so that queue_log can disable adaptive logging.

ASTERISK-25628 #close
Reported by: Dmitry Wagin

Change-Id: Ic1fb1600c7ce10fdfb1bcdc43c5576b7e0014372
---
M res/res_config_pgsql.c
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/10/5110/1

diff --git a/res/res_config_pgsql.c b/res/res_config_pgsql.c
index 40d1a37..e74b730 100644
--- a/res/res_config_pgsql.c
+++ b/res/res_config_pgsql.c
@@ -1319,6 +1319,7 @@
 		if (!column) {
 			if (requirements == RQ_WARN) {
 				ast_log(LOG_WARNING, "Table %s requires a column '%s' of size '%d', but no such column exists.\n", tablename, elm, size);
+				res = -1;
 			} else {
 				struct ast_str *sql = ast_str_create(100);
 				char fieldtype[15];

-- 
To view, visit https://gerrit.asterisk.org/5110
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic1fb1600c7ce10fdfb1bcdc43c5576b7e0014372
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>



More information about the asterisk-code-review mailing list