The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/6944
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Signed-off-by: Free Ekanayaka <free.ekanay...@canonical.com>
From 58d20f1636381df28bb1b20419546d352df86321 Mon Sep 17 00:00:00 2001 From: Free Ekanayaka <free.ekanay...@canonical.com> Date: Thu, 27 Feb 2020 10:29:17 +0000 Subject: [PATCH] lxd/db: Start-up check ignores pending nodes with out-of-date schema Signed-off-by: Free Ekanayaka <free.ekanay...@canonical.com> --- lxd/db/cluster/query.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxd/db/cluster/query.go b/lxd/db/cluster/query.go index 0df5ac33b6..16b7aedf99 100644 --- a/lxd/db/cluster/query.go +++ b/lxd/db/cluster/query.go @@ -43,7 +43,7 @@ func selectNodesVersions(tx *sql.Tx) ([][2]int, error) { return []interface{}{&versions[i][0], &versions[i][1]} } - stmt, err := tx.Prepare("SELECT schema, api_extensions FROM nodes") + stmt, err := tx.Prepare("SELECT schema, api_extensions FROM nodes WHERE pending=0") if err != nil { return nil, err }
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel