diff options
| author | Jonathan Robie <jonathan@apache.org> | 2010-10-28 15:21:06 +0000 |
|---|---|---|
| committer | Jonathan Robie <jonathan@apache.org> | 2010-10-28 15:21:06 +0000 |
| commit | 3197400e025c1198c831f4d75936cc351295ef48 (patch) | |
| tree | f7e0c1c280167418c1eb376c059c7e17e846f744 /cpp/src/qpid/broker/QueuePolicy.h | |
| parent | 410031a2a1f90d4be1af1eba3f9aecf8cb3818c9 (diff) | |
| download | qpid-python-3197400e025c1198c831f4d75936cc351295ef48.tar.gz | |
Fixes broker issues when max_count or max_size are invalid.
Accepts non-negative integer values, or strings containing the lexical representation of such values.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1028346 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/QueuePolicy.h')
| -rw-r--r-- | cpp/src/qpid/broker/QueuePolicy.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/QueuePolicy.h b/cpp/src/qpid/broker/QueuePolicy.h index 7006b617a1..3cdd63784d 100644 --- a/cpp/src/qpid/broker/QueuePolicy.h +++ b/cpp/src/qpid/broker/QueuePolicy.h @@ -44,7 +44,7 @@ class QueuePolicy uint64_t size; bool policyExceeded; - static int getInt(const qpid::framing::FieldTable& settings, const std::string& key, int defaultValue); + static uint32_t getCapacity(const qpid::framing::FieldTable& settings, const std::string& key, uint32_t defaultValue); protected: uint64_t getCurrentQueueSize() const { return size; } |
