~brianaker/gearmand/automake-fix

« back to all changes in this revision

Viewing changes to libgearman/worker.cc

  • Committer: Continuous Integration
  • Date: 2013-09-16 05:58:20 UTC
  • mfrom: (873.1.1 gearmand-1.2)
  • Revision ID: ci@tangent.org-20130916055820-lquk5py9vf9t8vbv
Merge lp:~brianaker/gearmand/test-reply Build: jenkins-Gearmand-875

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
 
48
48
#include "libgearman/assert.hpp"
49
49
 
 
50
#include "libgearman/log.hpp"
 
51
 
50
52
#include <cstdio>
51
53
#include <cstdlib>
52
54
#include <cstring>
847
849
                  return NULL;
848
850
                }
849
851
 
 
852
                if (worker->job()->impl()->assigned.command == GEARMAN_COMMAND_NOOP)
 
853
                {
 
854
                  gearman_log_debug(worker->universal, "Recieved NOOP");
 
855
                }
 
856
 
850
857
                if (worker->job()->impl()->assigned.command == GEARMAN_COMMAND_JOB_ASSIGN or
851
858
                    worker->job()->impl()->assigned.command == GEARMAN_COMMAND_JOB_ASSIGN_ALL or
852
859
                    worker->job()->impl()->assigned.command == GEARMAN_COMMAND_JOB_ASSIGN_UNIQ)
1124
1131
          switch (worker->work_function->callback(worker->work_job(),
1125
1132
                                                          static_cast<void *>(worker->work_function->context)))
1126
1133
          {
 
1134
            // @todo look at this from a "what should we do" view.
1127
1135
            case GEARMAN_FUNCTION_INVALID_ARGUMENT:
1128
1136
              // worker returned an invalid response, gearman_return_t
1129
1137
            case GEARMAN_FUNCTION_FATAL: