summaryrefslogtreecommitdiff
path: root/devel/ice/files/patch-cpp-src-IceStorm-TopicManagerI.cpp
diff options
context:
space:
mode:
authorBoris Samorodov <bsam@FreeBSD.org>2012-09-23 14:45:33 +0000
committerBoris Samorodov <bsam@FreeBSD.org>2012-09-23 14:45:33 +0000
commitc1436fa4e5e34530cd4ca97f9d1796dd47f64d19 (patch)
tree53e80749449d5d0989720db9cd5dbd8f5215fa9a /devel/ice/files/patch-cpp-src-IceStorm-TopicManagerI.cpp
parent- Update 96.43.xx legacy driver to version 96.43.23, which brings support (diff)
Changes from the PR:
. fix built using Clang in C++11 mode and libc++ (-std=c++11 -stdlib=libc++); . incorporate a patch that fixes an assert bug in IceStrom; . adopt new-style options; While I'm here: . adopt new-style headers; . remove indefinite article form COMMENT; . remove library versions from LIB_DEPENDS. PR: ports/171643 Submitted by: Michael Gmelin <freebsd@grem.de> (maintainer)
Notes
Notes: svn path=/head/; revision=304742
Diffstat (limited to 'devel/ice/files/patch-cpp-src-IceStorm-TopicManagerI.cpp')
-rw-r--r--devel/ice/files/patch-cpp-src-IceStorm-TopicManagerI.cpp47
1 files changed, 47 insertions, 0 deletions
diff --git a/devel/ice/files/patch-cpp-src-IceStorm-TopicManagerI.cpp b/devel/ice/files/patch-cpp-src-IceStorm-TopicManagerI.cpp
new file mode 100644
index 000000000000..c86f7d047a14
--- /dev/null
+++ b/devel/ice/files/patch-cpp-src-IceStorm-TopicManagerI.cpp
@@ -0,0 +1,47 @@
+--- cpp.orig/src/IceStorm/TopicManagerI.cpp 2011-06-15 21:43:58.000000000 +0200
++++ cpp/src/IceStorm/TopicManagerI.cpp 2012-09-12 22:14:00.000000000 +0200
+@@ -312,7 +312,7 @@ TopicManagerImpl::TopicManagerImpl(const InstancePtr& instance) :
+ _sync = _instance->nodeAdapter()->addWithUUID(_syncImpl);
+ }
+
+- DatabaseConnectionPtr connection = _databaseCache->getConnection();
++ DatabaseConnectionPtr connection = _databaseCache->newConnection();
+
+ // Ensure that the llu counter is present in the log.
+ LLUWrapperPtr lluWrapper = _databaseCache->getLLU(connection);
+@@ -381,7 +381,7 @@ TopicManagerImpl::create(const string& name)
+ {
+ try
+ {
+- DatabaseConnectionPtr connection = _databaseCache->getConnection();
++ DatabaseConnectionPtr connection = _databaseCache->newConnection();
+ TransactionHolder txn(connection);
+
+ SubscriberRecordKey key;
+@@ -486,7 +486,7 @@ TopicManagerImpl::observerInit(const LogUpdate& llu, const TopicContentSeq& cont
+ {
+ try
+ {
+- DatabaseConnectionPtr connection = _databaseCache->getConnection();
++ DatabaseConnectionPtr connection = _databaseCache->newConnection();
+ TransactionHolder txn(connection);
+
+ LLUWrapperPtr lluWrapper = _databaseCache->getLLU(connection);
+@@ -590,7 +590,7 @@ TopicManagerImpl::observerCreateTopic(const LogUpdate& llu, const string& name)
+ {
+ try
+ {
+- DatabaseConnectionPtr connection = _databaseCache->getConnection();
++ DatabaseConnectionPtr connection = _databaseCache->newConnection();
+ TransactionHolder txn(connection);
+
+ SubscriberRecordKey key;
+@@ -776,7 +776,7 @@ TopicManagerImpl::initMaster(const set<GroupNodeInfo>& slaves, const LogUpdate&
+ {
+ content.clear();
+
+- DatabaseConnectionPtr connection = _databaseCache->getConnection();
++ DatabaseConnectionPtr connection = _databaseCache->newConnection();
+ TransactionHolder txn(connection);
+
+ for(map<string, TopicImplPtr>::const_iterator p = _topics.begin(); p != _topics.end(); ++p)