1. 30 Jan, 2018 2 commits
  2. 09 Jan, 2018 1 commit
  3. 29 Dec, 2017 1 commit
  4. 31 Aug, 2017 1 commit
  5. 18 Aug, 2017 1 commit
    • Andrei Pavel's avatar
      boost::any for cassandra and more: · 11cc65e3
      Andrei Pavel authored
      - replaced void* with boost::any for type safety (might be just a bit less efficient)
      - replaced a multi-index-container used for statement parameters ( with position index and name index ) and a vector of the same parameters with a compile-time type-based map
      - refactored lease manager to use exchanges
      - exchanges now support UDTs (user defined types) and collections to be used in Cassandra statements
      - replaced size-ambiguous types (e.g. int) with size-explicit types (e.g. int32_t) in Cassandra-related code
      - made exception messages and log messages more detailed and consistent in format
  6. 07 Aug, 2017 1 commit
  7. 14 Dec, 2016 1 commit
    • Andrei Pavel's avatar
      Cassandra update · 50fd7903
      Andrei Pavel authored
      Replaced unrecommended backticks with $() in cql_version() in bash scripts.
      *_execute() and *_execute_script() functions from src/bin/admin/admin-utils.sh now pass the parameters to the underlying backend binary whenever they are given rather than when there are 2 or more.
      Corrected cql_version() return error in src/bin/admin/admin-utils.sh.
      Removed redundant "USE" from cql_init() in src/bin/admin/kea-admin.in.
      Inserted a newline in src/bin/admin/tests/Makefile.am to separate unrelated targets.
      Style changes in cql_*_test() functions in src/bin/admin/tests/cql_tests.sh.in.
          "perfromance" typo
          Added comment headers
          Added index on expire since it is used in WHERE clauses (further performance testing may be required)
          Removed dhcp4_options and dhcp6_options table since they are not required for Cassandra
      Added DROP INDEX in src/share/database/scripts/cql/dhcpdb_drop.cql.
      Added sql_common.h
      Added cql_exchange.h and cql_exchange.cc which mediate communication with Cassandra.
      Added cql_lease_mgr.h and cql_lease_mgr.cc
      Parameterized reconnect-wait-time, connect-timeout, request-timeout, tcp-keepalive, tcp-nodelay for Cassandra in kea.conf. Changes are in src/lib/dhcpsrv/cql_connection.cc and src/lib/dhcpsrv/parsers/dbaccess_parser.cc.
      Reformated x != NULL into !x as specified in the Kea style guidelines
          Added range check for port
          Added CqlConnection:setConsistency
          Added CqlConnection::startTransaction  which is a noop
          Added CqlTransaction method implementations.
          Corrected ending brace of namespace declaration, it doesn't need semicolon.
          Added explicit on CqlConnection constructor. Unlikely that this class will ever be derived, but it's good practice.
          Changed some comments.
          Added CqlTransaction class definition.
          Formatted the entire code.
          Changed data types to cass_ types.
      Added some log messages.
      Moved structs, enums and typedefs from src/lib/dhcpsrv/lease_mgr.h to src/lib/dhcpsrv/sql_common.h
      Added some missing tests in src/lib/dhcpsrv/tests/cql_lease_mgr_unittest.cc
  8. 20 Sep, 2016 1 commit
  9. 15 Sep, 2016 1 commit
  10. 06 Sep, 2016 1 commit
  11. 23 Jun, 2016 11 commits