Skip to content

Commit

Permalink
add work_data to known protocol command list
Browse files Browse the repository at this point in the history
  • Loading branch information
p-alik committed Oct 27, 2016
1 parent 344e863 commit 5e20b17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/Gearman/Util.pm
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ our %cmd = (
13 => ['IO', "work_complete"], # W->J/C: HANDLE[0]RES
14 => ['IO', "work_fail"], # W->J/C: HANDLE
25 => ['IO', "work_exception"], # W->J/C: HANDLE[0]EXCEPTION
28 => ['IO', "work_data"], # W->J/C: HANDLE[0]RES

15 => ['I', "get_status"], # C->J: HANDLE
20 => ['O', "status_res"], # C->J: HANDLE[0]KNOWN[0]RUNNING[0]NUM[0]DENOM
Expand Down
2 changes: 1 addition & 1 deletion t/11-unit.t
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ no strict "refs";
my @chr = ('a' .. 'z', 'A' .. 'Z', 0 .. 9);

ok(my %cmd = %{"$mn\:\:cmd"});
is(keys(%cmd), 27);
is(keys(%cmd), 28);

foreach my $n (keys %cmd) {
my $t = $cmd{$n}->[1];
Expand Down

0 comments on commit 5e20b17

Please sign in to comment.