On Tue, Aug 21, 2012 at 03:05:50PM +0200, Iustin Pop wrote:
> This enables the query functionality in confd.
> 
> Signed-off-by: Iustin Pop <[email protected]>
> ---
>  htools/Ganeti/Confd/Server.hs |   11 ++++++++++-
>  1 files changed, 10 insertions(+), 1 deletions(-)
> 
> diff --git a/htools/Ganeti/Confd/Server.hs b/htools/Ganeti/Confd/Server.hs
> index 2f7e49e..0f696e0 100644
> --- a/htools/Ganeti/Confd/Server.hs
> +++ b/htools/Ganeti/Confd/Server.hs

>  -- | Main function.
>  main :: DaemonOptions -> IO ()
>  main opts = do
> @@ -532,5 +539,7 @@ main opts = do
>    _ <- forkIO $ onTimeoutTimer inotiaction C.clusterConfFile cref statemvar
>    -- fork the polling timer
>    _ <- forkIO $ onReloadTimer inotiaction C.clusterConfFile cref statemvar
> +  -- launch the queryd listener
> +  runQueryD Nothing (configReader cref)
>    -- and finally enter the responder loop
>    forever $ listener s hmac (responder cref)

Correction: brown-bag interdiff:

diff --git a/htools/Ganeti/Confd/Server.hs b/htools/Ganeti/Confd/Server.hs
index bd3ae17..6c0a024 100644
--- a/htools/Ganeti/Confd/Server.hs
+++ b/htools/Ganeti/Confd/Server.hs
@@ -509,6 +509,6 @@ main opts = do
   -- fork the polling timer
   _ <- forkIO $ onReloadTimer inotiaction C.clusterConfFile cref statemvar
   -- launch the queryd listener
-  runQueryD Nothing (configReader cref)
+  _ <- forkIO $ runQueryD Nothing (configReader cref)
   -- and finally enter the responder loop
   forever $ listener s hmac (responder cref)

-- 
thanks,
iustin

Reply via email to