~ubuntu-branches/ubuntu/saucy/slurm-llnl/saucy

« back to all changes in this revision

Viewing changes to src/common/forward.c

  • Committer: Bazaar Package Importer
  • Author(s): Gennaro Oliva
  • Date: 2008-12-03 11:56:28 UTC
  • mfrom: (1.1.8 upstream) (3.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20081203115628-93t417da6wkazmo5
Tags: 1.3.11-1
New upstream release 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************\
2
2
 *  forward.c - forward RPCs through hierarchical slurmd communications
3
 
 *  $Id$
4
3
 *****************************************************************************
5
 
 *  Copyright (C) 2006 The Regents of the University of California.
 
4
 *  Copyright (C) 2006-2007 The Regents of the University of California.
 
5
 *  Copyright (C) 2008 Lawrence Livermore National Security.
6
6
 *  Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
7
7
 *  Written by Danny Auble <auble1@llnl.gov>.
8
8
 *  LLNL-CODE-402394.
79
79
        /* repeat until we are sure the message was sent */ 
80
80
        while((name = hostlist_shift(hl))) {
81
81
                if(slurm_conf_get_addr(name, &addr) == SLURM_ERROR) {
82
 
                        error("forward_thread: can't get addr for host %s",
83
 
                              name);
 
82
                        error("forward_thread: can't find address for host "
 
83
                              "%s, check slurm.conf", name);
84
84
                        slurm_mutex_lock(fwd_msg->forward_mutex);
85
85
                        mark_as_failed_forward(&fwd_msg->ret_list, name,
86
 
                                               SLURM_COMMUNICATIONS_CONNECTION_ERROR);
 
86
                                        SLURM_COMMUNICATIONS_CONNECTION_ERROR);
87
87
                        free(name);
88
88
                        if (hostlist_count(hl) > 0) {
89
89
                                slurm_mutex_unlock(fwd_msg->forward_mutex);
96
96
 
97
97
                        slurm_mutex_lock(fwd_msg->forward_mutex);
98
98
                        mark_as_failed_forward(&fwd_msg->ret_list, name,
99
 
                                               SLURM_COMMUNICATIONS_CONNECTION_ERROR);
 
99
                                        SLURM_COMMUNICATIONS_CONNECTION_ERROR);
100
100
                        free(name);
101
101
                        if (hostlist_count(hl) > 0) {
102
102
                                slurm_mutex_unlock(fwd_msg->forward_mutex);