summaryrefslogtreecommitdiff
path: root/cpp/src
Commit message (Collapse)AuthorAgeFilesLines
* QPID-4516: Undo use of atomic status in HaBroker.cppAlan Conway2013-01-152-39/+29
| | | | | | Fixes issue introduced in r1432273, causing build failures on windows. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1433655 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Add brokertest.py to EXTRA_DIST, required by ha_tests.py.Alan Conway2013-01-141-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1433143 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4535 Cmake build broken by legacy storeCharles E. Rolke2013-01-141-3/+31
| | | | | | | | | | Check for libaio and uuid. Fix logic error that allowed build to proceed when DB_FOUND was false. Remove unnecessary 'rt' from link. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1433127 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4514: Clean up cluster code: remove passive links.Alan Conway2013-01-144-51/+5
| | | | | | Remove passive code from Link and LinkRegistry, only used by defunct cluster code. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1433089 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4514: Clean up cluster code: remove unused testlib.pyAlan Conway2013-01-141-766/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1433072 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4536: Remove functionality which automatically makes a brokerAndrew Stitcher2013-01-145-127/+10
| | | | | | advertise all its network interfaces as potential failover endpoints. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1433061 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4514: Clean up cluster code: sasl_fed_ex testAlan Conway2013-01-141-81/+11
| | | | | | Clean up obsolete code sasl_fed_ex related to defunct cluster testing. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1433056 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4514: Clean up cluster code: SessionImplAlan Conway2013-01-142-92/+35
| | | | | | | | | Clean up obsolete code in SessionImpl class used only by defunct cluster code: - Remove SessionImpl::send reframe parameter. - Remove doClearDeliveryPropertiesExchange flag. - Remove disableAutoDetach and autoDetach flag. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1433055 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4514: Clean up cluster code: Obsolete management import/export functions.Alan Conway2013-01-143-560/+0
| | | | | | Remove management fucntions used to import/export data from the cluster module. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1433054 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4514: Clean up cluster code: Obsolete comment in BSDSocket.cpp.Alan Conway2013-01-141-5/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1433053 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4516: Sporadic failure in ha_tests test_failover_send_receiveAlan Conway2013-01-116-41/+73
| | | | | | | | | | | | | | Several fixes were required in the code to correct this problem: - Missing break statement in switch. - Remove unused function HaBroker::resetMembership - Abort connection of timed-out backups so they can attempt to reconnect. - New primary resets membership before allowing backups to connect. - Test for and ignore double-promotion. - HaBroker: dynamic logPrefix() shows status. Made status atomic for efficient access for log messages. - Update primary status in membership. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1432273 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: HA log message missing sequence number.Alan Conway2013-01-111-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1432263 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1726 ASF licensed QPID store - reenable in buildCharles E. Rolke2013-01-106-96/+114
| | | | | | | | Add new legacystore.cmake to EXTRA_DIST in makefile suite. Fix cmake scripts for core library and tests. Note: Tests are not truly integrated. Four standalone unit tests are starters for proving functionality. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1431635 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4531 : older GCC libs have error on negative-zero cast.Michael Goulish2013-01-101-7/+13
| | | | | | | | This is a real fix, a replacement for r1431435, which was written by a crazy person. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1431548 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA : undoing r1431435. It's wrong, wrong, wrong!Michael Goulish2013-01-101-9/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1431509 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Expand Variant tests to test previous Variant conversion checkinAndrew Stitcher2013-01-101-0/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1431493 13f79535-47bb-0310-9956-ffa450edef68
* JIRA-4531 : Variant.cpp cast of -0 failing with older GCCMichael Goulish2013-01-101-0/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1431435 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4315: Make Windows workAndrew Stitcher2013-01-091-367/+379
| | | | | | More cut-n-paste cargo cult programming git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1431116 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4518 : disallow unknown args in config fileMichael Goulish2013-01-092-14/+45
| | | | | | | | | | | | | Change EnvOptMapper::configFileLine to take ar arg telling it if it's OK to have unknown args or not. If not, throw upon encountering. From the higher level of run_broker(), there are two passes of arg parsing. In the first pass it's normal to have unknown args, because the loadable modules are not loaded yet. But I change the second parsing to pass down the arg that says "unknowns are not okay." git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1431016 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4315: Changed Connection management name to be supplied by LinkAndrew Stitcher2013-01-0811-86/+61
| | | | | | | code on outgoing connections so that the Link code can correlate the connection with the Link using the name. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1430573 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1726 ASF licensed Qpid store - disable building this componentCharles E. Rolke2013-01-082-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1430338 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4368: Add missing dist fileJustin Ross2013-01-081-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1430329 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1726 ASF licensed Qpid StoreCharles E. Rolke2013-01-0723-0/+3281
| | | | | | | | | | | | | | | | | | | | | | | | Add unit tests. There are several issues with these tests: 1. Originally the four .cpp unit test sources were compiled into a single unit_test executable. In the current framework those four sources create conflicting brokers that overwrite each other's store and fail to open port 5672. In this checkin there are four unit test executables. Running each serially gets them all to pass. A new strategy is needed to start brokers that don't conflict. 2. The legacystore.so is not integrated with the rest of the tests. Some tests may run with the externally compiled msgstore.so and some use the built in test_store. Plugging legacystore.so into these other tests is TBD. 3. cpp/src/tests/legacystore defines more tests beyond simple unit tests. None of the issues related to wider system tests are addressed yet. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1430018 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1726 ASF licensed Qpid storeCharles E. Rolke2013-01-075-40/+43
| | | | | | | | Update legacystore from changes in source svn revisions 4514 to 4528. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1429990 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1726 ASF licensed Qpid store. Charles E. Rolke2013-01-072-39/+49
| | | | | | | | | Enable legacystore build in normal processing. Rewrite CMake to have look and feel of cpp/src CMake code. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1429980 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: restore inclusion for Windows builds broken by r1428722Charles E. Rolke2013-01-041-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1428912 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: slim down some header file inclusionsAndrew Stitcher2013-01-049-147/+151
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1428722 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4514: Remove obsolete cluster code: brokertest.pyAlan Conway2013-01-031-85/+7
| | | | | | Clean up cluster obsolete code in brokertest.py. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1428634 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA - refer to DtxTimeout as the struct it is, not a class. Avoids a VC ↵Stephen D. Huston2013-01-021-1/+1
| | | | | | diagnostic. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1428104 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA - add newline at end of fileStephen D. Huston2013-01-021-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1428100 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Added Broker.h to recover from r1425038 in windows buildsCharles E. Rolke2012-12-212-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1425137 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Removed Broker.h from all unnecessary header filesAndrew Stitcher2012-12-2114-17/+72
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1425038 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Removed Timer.h out of the chain of header files included by Broker.hAndrew Stitcher2012-12-2116-77/+128
| | | | | | (since that is widely included) to avoid unnecessary recompilation git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1425037 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Removed some unused Timer features (old cluster used to use them)Andrew Stitcher2012-12-212-9/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1425036 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1726 ASF licensed, Qpid hosted store moduleCharles E. Rolke2012-12-2168-169/+169
| | | | | | | | Change included file references in #include to specify the full path name relative to qpid/cpp/src. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1425009 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Removed unnecessary header includesAndrew Stitcher2012-12-201-5/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1424767 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Removed some unused Broker codeAndrew Stitcher2012-12-202-22/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1424761 13f79535-47bb-0310-9956-ffa450edef68
* Bug 886656 - HA backup broker does not properly increment the alternate ↵Alan Conway2012-12-206-23/+40
| | | | | | | | exchange user count Set alternate exchange in-use counters correctly on backup brokers. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1424617 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Stop linking boost filesystem library in Posix port as it isn't ↵Andrew Stitcher2012-12-202-5/+2
| | | | | | | | used anymore (yay!) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1424608 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Stop using boost::filesystem for something that std::fstream can do ↵Andrew Stitcher2012-12-201-11/+8
| | | | | | well enough git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1424607 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1726: ASF licensed, Qpid hosted store moduleCharles E. Rolke2012-12-2076-358/+360
| | | | | | | | | | | | | Incorporating post-commit review comments: * Rename *.hpp to *.h; repair include references and comments * Promote include guards to be unambiguous filename-related tokens * #include uses double quote not angle brackets when refering to files in qpid source code tree git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1424588 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1726 ASF licensed, Qpid hosted store moduleCharles E. Rolke2012-12-2036-0/+0
| | | | | | | Project standard: rename files from .hpp to .h git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1424532 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4514: Remove obsolete cluster code: still more in pluginCharles E. Rolke2012-12-201-7/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1424520 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Repair include guards that are absent or fail to encompass everything.Charles E. Rolke2012-12-203-8/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1424499 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4095: Move the directory iteration into FileSysDir:Andrew Stitcher2012-12-209-32/+75
| | | | | | | - For Posix implement with direct calls - For windows implement with v2/v3 boost::filesystem to be replaced later git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1424247 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1726 ASF licensed, Qpid hosted store module Charles E. Rolke2012-12-191-1/+1
| | | | | | | | Repair typo. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1424191 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1726 ASF licensed, Qpid hosted store module Charles E. Rolke2012-12-1983-278/+6
| | | | | | | | Remove corporate copyright notices. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1424184 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4516: Sporadic failure in ha_tests test_failover_send_receiveAlan Conway2012-12-198-32/+31
| | | | | | | | | | | | | | | | Sporadic failures in ha_tests.py test_failover_send_receive. Two types of failure observed: - core dumps in a debug build at a C++ assertion - python test assertion like: AssertionError: Broker<137:cluster0-0.log qpidd-157 :35273> expected='ready', actual='catchup' The following fixes were made to correct the problem: - Missing break statement in switch. - Remove unused function HaBroker::resetMembership - Abort connection of timed-out backups so they can attempt to reconnect. - New primary resets membership before allowing backups to connect. - Remove incorrect demotion ready->catchup on timeout. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1424169 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1726 ASF licensed, Qpid hosted store module Charles E. Rolke2012-12-191-1/+1
| | | | | | | | Disable building the legacystore component until it has further hardening. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1424162 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1726 ASF licensed storeCharles E. Rolke2012-12-191-0/+68
| | | | | | | | Add new file git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1424149 13f79535-47bb-0310-9956-ffa450edef68