Author: astitcher
Date: 2009-07-28 01:13:03 -0400 (Tue, 28 Jul 2009)
New Revision: 3522
Modified:
store/trunk/cpp/tests/OrderingTest.cpp
store/trunk/cpp/tests/SimpleTest.cpp
store/trunk/cpp/tests/TransactionalTest.cpp
store/trunk/cpp/tests/TwoPhaseCommitTest.cpp
Log:
Use new default constructor for LinkRegistry
Modified: store/trunk/cpp/tests/OrderingTest.cpp
===================================================================
--- store/trunk/cpp/tests/OrderingTest.cpp 2009-07-24 16:33:46 UTC (rev 3521)
+++ store/trunk/cpp/tests/OrderingTest.cpp 2009-07-28 05:13:03 UTC (rev 3522)
@@ -101,7 +101,7 @@
store = std::auto_ptr<MessageStoreImpl>(new MessageStoreImpl());
store->init(test_dir, 4, 1, 8);
ExchangeRegistry exchanges;
- LinkRegistry links(0);
+ LinkRegistry links;
Timer t;
DtxManager mgr(t);
mgr.setStore (store.get());
Modified: store/trunk/cpp/tests/SimpleTest.cpp
===================================================================
--- store/trunk/cpp/tests/SimpleTest.cpp 2009-07-24 16:33:46 UTC (rev 3521)
+++ store/trunk/cpp/tests/SimpleTest.cpp 2009-07-28 05:13:03 UTC (rev 3522)
@@ -77,14 +77,14 @@
void recover(MessageStoreImpl& store, ExchangeRegistry& exchanges)
{
QueueRegistry queues;
- LinkRegistry links(0);
+ LinkRegistry links;
recover(store, queues, exchanges, links);
}
void recover(MessageStoreImpl& store, QueueRegistry& queues)
{
ExchangeRegistry exchanges;
- LinkRegistry links(0);
+ LinkRegistry links;
recover(store, queues, exchanges, links);
}
@@ -107,7 +107,7 @@
store.init(test_dir, 4, 1, 8);
ExchangeRegistry exchanges;
QueueRegistry queues;
- LinkRegistry links(0);
+ LinkRegistry links;
recover(store, queues, exchanges, links);
@@ -122,7 +122,7 @@
store.init(test_dir, 4, 1, 8);
ExchangeRegistry exchanges;
QueueRegistry queues;
- LinkRegistry links(0);
+ LinkRegistry links;
recover(store, queues, exchanges, links);
@@ -418,7 +418,7 @@
QueueRegistry registry;
registry.setStore (&store);
ExchangeRegistry exchanges;
- LinkRegistry links(0);
+ LinkRegistry links;
Timer t;
DtxManager dtx(t);
dtx.setStore (&store);
@@ -622,7 +622,7 @@
store.init(test_dir, 4, 1, 8);
ExchangeRegistry exchanges;
QueueRegistry queues;
- LinkRegistry links(0);
+ LinkRegistry links;
//ensure recovery works ok:
recover(store, queues, exchanges, links);
@@ -639,7 +639,7 @@
store.init(test_dir, 4, 1, 8);
ExchangeRegistry exchanges;
QueueRegistry queues;
- LinkRegistry links(0);
+ LinkRegistry links;
//ensure recovery works ok:
recover(store, queues, exchanges, links);
Modified: store/trunk/cpp/tests/TransactionalTest.cpp
===================================================================
--- store/trunk/cpp/tests/TransactionalTest.cpp 2009-07-24 16:33:46 UTC (rev 3521)
+++ store/trunk/cpp/tests/TransactionalTest.cpp 2009-07-28 05:13:03 UTC (rev 3522)
@@ -131,7 +131,7 @@
store->init(test_dir, 4, 1, 8);
queues = std::auto_ptr<QueueRegistry>(new QueueRegistry);
ExchangeRegistry exchanges;
- LinkRegistry links(0);
+ LinkRegistry links;
Timer t;
DtxManager mgr(t);
mgr.setStore (store.get());
Modified: store/trunk/cpp/tests/TwoPhaseCommitTest.cpp
===================================================================
--- store/trunk/cpp/tests/TwoPhaseCommitTest.cpp 2009-07-24 16:33:46 UTC (rev 3521)
+++ store/trunk/cpp/tests/TwoPhaseCommitTest.cpp 2009-07-28 05:13:03 UTC (rev 3522)
@@ -358,7 +358,7 @@
Timer t;
ExchangeRegistry exchanges;
queues = std::auto_ptr<QueueRegistry>(new QueueRegistry);
- links = std::auto_ptr<LinkRegistry>(new LinkRegistry(0));
+ links = std::auto_ptr<LinkRegistry>(new LinkRegistry);
dtxmgr = std::auto_ptr<DtxManager>(new DtxManager(t));
dtxmgr->setStore (store.get());
RecoveryManagerImpl recovery(*queues, exchanges, *links, *dtxmgr, 0);