From 6b7572c57dd663f7b3e21746272a9c04f413c8d1 Mon Sep 17 00:00:00 2001 From: "Stephen D. Huston" Date: Thu, 21 Oct 2010 23:09:00 +0000 Subject: 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 --- cpp/src/qpid/store/StorageProvider.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cpp/src/qpid/store/StorageProvider.h') 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 > MessageQueueMap; typedef std::map -- cgit v1.2.1