diff options
| author | Stephen D. Huston <shuston@apache.org> | 2010-10-21 23:09:00 +0000 |
|---|---|---|
| committer | Stephen D. Huston <shuston@apache.org> | 2010-10-21 23:09:00 +0000 |
| commit | 6b7572c57dd663f7b3e21746272a9c04f413c8d1 (patch) | |
| tree | e13c2dfe341dcaf90c5edf067313ee0098357186 /cpp/src/qpid/store/StorageProvider.h | |
| parent | 7ecaee585691df73928e3bb2248d8977372d1041 (diff) | |
| download | qpid-python-6b7572c57dd663f7b3e21746272a9c04f413c8d1.tar.gz | |
Add hybrid SQL-CLFS store that can be used on Windows systems Vista, Win Server 2008 and up - these have the Common Log File System facility. The CLFS store uses CLFS to store/recover messages and transactions instead of SQL. SQL still holds queues, bindings, exchanges, configs.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1026175 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/store/StorageProvider.h')
| -rw-r--r-- | cpp/src/qpid/store/StorageProvider.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cpp/src/qpid/store/StorageProvider.h b/cpp/src/qpid/store/StorageProvider.h index fc19f089fb..bc8d187517 100644 --- a/cpp/src/qpid/store/StorageProvider.h +++ b/cpp/src/qpid/store/StorageProvider.h @@ -50,6 +50,15 @@ struct QueueEntry { uint64_t queueId; TplStatus tplStatus; std::string xid; + + QueueEntry(uint64_t id, TplStatus tpl = NONE, const std::string& x = "") + : queueId(id), tplStatus(tpl), xid(x) {} + + bool operator==(const QueueEntry& rhs) { + if (queueId != rhs.queueId) return false; + if (tplStatus == NONE && rhs.tplStatus == NONE) return true; + return xid == rhs.xid; + } }; typedef std::map<uint64_t, std::vector<QueueEntry> > MessageQueueMap; typedef std::map<std::string, qpid::broker::RecoverableTransaction::shared_ptr> |
