summaryrefslogtreecommitdiff
path: root/include/rabbit.hrl
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2010-05-27 14:17:25 +0100
committerMatthew Sackman <matthew@rabbitmq.com>2010-05-27 14:17:25 +0100
commit98f915848d0fe0df620baf934718792b2e42a4ba (patch)
tree3aeb3ed8400ea406c0a6e4590fdef46b02d23d1e /include/rabbit.hrl
parent85918481172ed1f2b9c684d337a35874af91c7b0 (diff)
parent6f62499940745463508daffe3c624a65c4f77b6a (diff)
downloadrabbitmq-server-git-98f915848d0fe0df620baf934718792b2e42a4ba.tar.gz
Merging bug21915 onto default. Note that this has some semantic changes which are 'safe' for 0-8 and more in line with 0-9-1. This is: an exclusive queue can only be redeclared in the same connection as created the queue and the redeclaration must also specify exclusivity.
Diffstat (limited to 'include/rabbit.hrl')
-rw-r--r--include/rabbit.hrl14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/rabbit.hrl b/include/rabbit.hrl
index 145f6104ae..0d75310b11 100644
--- a/include/rabbit.hrl
+++ b/include/rabbit.hrl
@@ -51,7 +51,8 @@
-record(exchange, {name, type, durable, auto_delete, arguments}).
--record(amqqueue, {name, durable, auto_delete, arguments, pid}).
+-record(amqqueue, {name, durable, auto_delete, exclusive_owner = none,
+ arguments, pid}).
%% mnesia doesn't like unary records, so we add a dummy 'value' field
-record(route, {binding, value = const}).
@@ -104,11 +105,12 @@
write :: regexp(),
read :: regexp()}).
-type(amqqueue() ::
- #amqqueue{name :: queue_name(),
- durable :: boolean(),
- auto_delete :: boolean(),
- arguments :: amqp_table(),
- pid :: maybe(pid())}).
+ #amqqueue{name :: queue_name(),
+ durable :: boolean(),
+ auto_delete :: boolean(),
+ exclusive_owner :: maybe(pid()),
+ arguments :: amqp_table(),
+ pid :: maybe(pid())}).
-type(exchange() ::
#exchange{name :: exchange_name(),
type :: exchange_type(),