diff options
| author | Tony Garnock-Jones <tonyg@kcbbs.gen.nz> | 2009-04-24 17:09:21 +0100 |
|---|---|---|
| committer | Tony Garnock-Jones <tonyg@kcbbs.gen.nz> | 2009-04-24 17:09:21 +0100 |
| commit | ff1af96ccc5839d16f538708308a5578376884a8 (patch) | |
| tree | e979636301b15842a02fdc27201d8fe8bdbc32ea /src | |
| parent | e671dde6ac5f9719e34f88e64658739bd6ef4237 (diff) | |
| parent | 96ba6eb0ccfde19d80186408cb34f6778a35c3ab (diff) | |
| download | rabbitmq-server-git-ff1af96ccc5839d16f538708308a5578376884a8.tar.gz | |
merge default into amqp_0_9_1
Diffstat (limited to 'src')
| -rw-r--r-- | src/priority_queue.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/priority_queue.erl b/src/priority_queue.erl index 88ad0c182d..732757c41c 100644 --- a/src/priority_queue.erl +++ b/src/priority_queue.erl @@ -111,7 +111,7 @@ in(X, 0, {queue, [_] = In, []}) -> {queue, [X], In}; in(X, 0, {queue, In, Out}) when is_list(In), is_list(Out) -> {queue, [X|In], Out}; -in(X, Priority, Q = {queue, [], []}) -> +in(X, Priority, _Q = {queue, [], []}) -> in(X, Priority, {pqueue, []}); in(X, Priority, Q = {queue, _, _}) -> in(X, Priority, {pqueue, [{0, Q}]}); |
