]> git.proxmox.com Git - pve-cluster.git/blobdiff - data/src/quorum.c
buildsys: add sbuild convenience target
[pve-cluster.git] / data / src / quorum.c
index 1c258db04827e81e7fa2d51570d2838295c0e8d1..9df0e904a5880bf812bffeeb71f26794efc2a7f1 100644 (file)
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2010 Proxmox Server Solutions GmbH
+  Copyright (C) 2010 - 2020 Proxmox Server Solutions GmbH
 
   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU Affero General Public License as published by
@@ -56,7 +56,7 @@ static void quorum_notification_fn(
 
        result = quorum_context_get(handle, (gconstpointer *)&private);
        if (result != CS_OK || !private) {
-               cfs_critical("quorum_context_get error: %d (%p)", result, private);
+               cfs_critical("quorum_context_get error: %d (%p)", result, (void *) private);
                return;
        }
 
@@ -146,6 +146,7 @@ static int service_quorum_initialize(
        return quorum_fd;
 
  err_finalize:
+       cfs_set_quorate(0, FALSE);
        quorum_finalize(handle);
  err_reset_handle:
        private->handle = 0;
@@ -181,6 +182,7 @@ loop:
 
        cfs_critical("quorum_dispatch failed: %d", result);
 
+       cfs_set_quorate(0, FALSE);
        quorum_finalize(handle);
        private->handle = 0;
        return FALSE;