From 4cc34621ecdd0e6622f4b6a875da3a9800cc89fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Tue, 8 Oct 2013 15:20:09 +0200 Subject: [PATCH] Feature #1683: Make initial sql queries quiet, so errors do not show in log --- src/nebula/Nebula.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nebula/Nebula.cc b/src/nebula/Nebula.cc index 065a383565..7f78165fb7 100644 --- a/src/nebula/Nebula.cc +++ b/src/nebula/Nebula.cc @@ -128,7 +128,7 @@ int SystemDB::check_db_version() oss << "SELECT version FROM " << ver_table << " WHERE oid=(SELECT MAX(oid) FROM " << ver_table << ")"; - db->exec(oss, this); + db->exec(oss, this, true); oss.str(""); unset_callback(); @@ -138,7 +138,7 @@ int SystemDB::check_db_version() // Table user_pool is present for all OpenNebula versions, and it // always contains at least the oneadmin user. oss << "SELECT MAX(oid) FROM user_pool"; - rc = db->exec(oss); + rc = db->exec(oss, 0, true); oss.str("");