2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00
Commit Graph

12705 Commits

Author SHA1 Message Date
JINMEI Tatuya
d41d8af0c7 [master] Merge branch 'trac2203' 2012-10-08 13:57:05 -07:00
JINMEI Tatuya
869d14d705 [2292] minor cleanups: constify, indentation 2012-10-08 11:32:18 -07:00
Mukund Sivaraman
9a9260c258 [2266] Remove all traces of RRsetList
It is no longer used anywhere.
2012-10-08 23:40:24 +05:30
Mukund Sivaraman
daedcaea54 Merge branch 'trac1899_2' 2012-10-08 22:59:25 +05:30
JINMEI Tatuya
432064bc3e [master] add std:: for memset(). sunstudio requires this with <cstring> 2012-10-08 16:41:33 +00:00
Jelte Jansen
1ab996e4c5 [master] Merge branch 'trac2275' 2012-10-08 14:53:19 +02:00
Mukund Sivaraman
bf260bbc80 [master] Add libb10-cc.la to tests Makefile.am 2012-10-08 14:42:55 +05:30
Jelte Jansen
f8261d10f1 [master] Merge branch 'trac2278' 2012-10-08 09:57:26 +02:00
Jelte Jansen
7bcaf2b790 [2275] fix strncpy in socketrequestortest 2012-10-08 09:41:11 +02:00
Mukund Sivaraman
f5bd1368b7 [1899] Allow other RRtypes in nsec3 table (for RRSIGs)
* The unique constraint on NSEC3 owner per zone is now removed
* NSEC3 RRSIGs are now returned next to their RR set
* Test was adjusted to check for RRSIGs too
2012-10-08 12:36:28 +05:30
JINMEI Tatuya
c629dec436 [clang-build] added workaround for the clang++ "unused arguments" warn/error.
by specifying -Qunused-arguments.  Also, as a cleanup for better organization
I moved compiler specific settings to earlier part of configure.ac, where
this workaround was added.
2012-10-07 23:53:26 -07:00
JINMEI Tatuya
e4bd572168 [clang-build] Revert "[clang-build] specify thread flag as part CPPFLAGS, not LDFLAGS."
This reverts commit daf81c8846.

I believe the sense of the change is correct, but it has effects on
other OSes, so it's probably better to use clang specific workaround
(will commit it later).
2012-10-07 21:20:52 -07:00
JINMEI Tatuya
b211a06011 [clang-build] Revert "[clang-build] specify -pthread in CXXFLAGS and via system-indepedent variable."
This reverts commit d62a1e4250.

I believe the sense of the change is correct, but it has effects on
other OSes, so it's probably better to use clang specific workaround
(will commit it later).
2012-10-07 21:19:23 -07:00
JINMEI Tatuya
d62a1e4250 [clang-build] specify -pthread in CXXFLAGS and via system-indepedent variable.
specifying it in LDFLAGS would trigger build error with some versions of clang.
hardcoding "-pthread" is less portable.
2012-10-07 14:21:57 -07:00
JINMEI Tatuya
9ea5133b17 [clang-build] removed an effectively unused variable. clang would complain. 2012-10-07 14:21:50 -07:00
JINMEI Tatuya
daf81c8846 [clang-build] specify thread flag as part CPPFLAGS, not LDFLAGS.
newer version of clang treats the latter as a fatal error.
2012-10-07 14:21:35 -07:00
JINMEI Tatuya
23da2f078a [clang-build] explictly define destructor of mostly empty template class.
without this new versions of clang++ seem to complain that instantiation of
the class results in an unused variable.
2012-10-07 14:20:52 -07:00
Mukund Sivaraman
587a136992 [2268] Add back logging calls 2012-10-07 23:40:22 +05:30
Mukund Sivaraman
ec2aecacc4 [2268] Fix a leak upon exception in InMemoryClient's constructor 2012-10-07 23:25:55 +05:30
Mukund Sivaraman
83a27d452c [2268] Remove redundant MemorySegmentTest definition 2012-10-07 23:02:57 +05:30
Mukund Sivaraman
ece07281ab [2268] Move constructor and destructor to top of file 2012-10-07 22:59:27 +05:30
Mukund Sivaraman
d050293628 [2268] Update ZoneDataUpdater API doc 2012-10-07 22:54:02 +05:30
Mukund Sivaraman
ef49adadf6 [2268] Move EmptyZone exception to InMemoryClient class 2012-10-07 21:18:38 +05:30
Michal 'vorner' Vaner
00d3de1af8 [2292] Update tests
They don't need the mutable versions to work, but they used them anyway.
2012-10-07 17:19:12 +02:00
Michal 'vorner' Vaner
73900f62a7 [2292] Re-add version of find removed by accident
This one was not mutable, it just took Name as an argument.
2012-10-07 17:18:33 +02:00
Michal 'vorner' Vaner
7a628baa1a [2292] Drop tests for InMemoryClient::add
As the method was removed.
2012-10-07 17:03:18 +02:00
Michal 'vorner' Vaner
915576b6aa [2292] Remove unused template parameters
The domain tree no longer supports the mutable find versions, so we
don't need the template parameters allowing for them.
2012-10-07 16:50:50 +02:00
Michal 'vorner' Vaner
e1b4bf1cb5 [2292] Remove mutable find methods
They are currently used in test code only (so we'll need to update the
tests to compile). The real code seams clean now.
2012-10-07 16:38:23 +02:00
Michal 'vorner' Vaner
76243c3ccd [2292] Remove the setZoneData method
Currently, the content of zone is passed to the addZone method. No way
to change it later, but the addZone overwrites the old value if called
again.

This should hopefully allow for removal of mutable find methods from the
tree.
2012-10-07 16:13:56 +02:00
JINMEI Tatuya
86a4bae1ff [2204] cleanup: removed unused func, and renamed "ClientList" with "DataSrc".
getClientListClasses() was removed.  It's not used anymore.
a few methods named with "ClientList" were renamed with adding "DataSrc".
The resulting names are a bit long, but since there's no namespace
qualification, simply saying "client" can be confusing (it could be
interpreted to mean DNS clients, for example).
2012-10-05 17:04:28 -07:00
JINMEI Tatuya
0b6e74f544 [2204] regression fix: make sure the datasrc config is installed to server. 2012-10-05 16:52:37 -07:00
JINMEI Tatuya
d7846ea4a9 [2204] removed server function/template param from configureDataSourceGeneric.
This is pure cleanup.  This function already doesn't use the server.
2012-10-05 16:48:03 -07:00
JINMEI Tatuya
5d61dba1dc [2204] extracted swapDataSrcClientLists() from configureDataSource().
now configureDataSource() can take time.
2012-10-05 16:40:10 -07:00
JINMEI Tatuya
c286e0dec7 [2204] completely replaced setClientList with swapDataSrcClientLists.
the test cases using setClientList were updated so they use
swapDataSrcClientLists (some of them work as a test for the "swap" itself).
now we don't need setClientList, so it was removed.
2012-10-05 16:02:01 -07:00
JINMEI Tatuya
d664fca786 [2204] simplify configureDataSource by always creating a new lists and swap.
so we don't have to worry about what are in the current lists or rollback
operations.
swapDataSrcClientLists() is newly introduced for AuthSrv.  No direc tests
yet (technically bad in terms TDD but the definition is very simple), which
will be provided in the next step.
the lock is now moved inside swapDataSrcClientLists().

note: even though this version builds everything, the amount of work
should be mostly the same because the only save is to create the empty
ClientList when the new and old have the same class of client.  The expensive
part is ClientList::configure().  This version doesn't need any more call
to configure() than the old version.
2012-10-05 15:15:18 -07:00
JINMEI Tatuya
a0a5e207d4 [2204] changed internal representation of auth_srv's "client_lists_" to ptrs.
this will be necessary later in this branch.
also renamed the member variable "datasrc_client_lists_" as the mere "client"
can be ambiguous.
2012-10-05 14:03:52 -07:00
JINMEI Tatuya
b160122e46 [2204] Merge branch 'trac2203' into trac2204 2012-10-05 13:13:19 -07:00
Marcin Siodelski
31c8d5e0b4 [2304] Added Option6IntArray option type and unit tests. 2012-10-05 20:42:20 +02:00
JINMEI Tatuya
44d9dfa8aa [2203] renamed datasrc_configurator to datasrc_config; it represents it better. 2012-10-05 10:12:42 -07:00
Marcin Siodelski
273e195ef4 [2304] Added factory functions for IA_NA and IAADDR options. 2012-10-05 15:16:26 +02:00
Marcin Siodelski
b2d0a03b1e [2304] Checking data types specified for Option6Int. 2012-10-05 15:15:02 +02:00
Jelte Jansen
fbc8d38199 [2275] address review comments 2012-10-05 12:10:56 +02:00
JINMEI Tatuya
7a40926af1 [2244] rename Componet.running() is_running() for consistency.
this branch introduced is_failed() (and failed() was already defined for
a different a purpose), so for consistency it would be better to name
the running version is_xxx too.
2012-10-04 22:19:27 -07:00
JINMEI Tatuya
f8a0343290 [2244] cleanup: reordered log message file 2012-10-04 22:11:45 -07:00
JINMEI Tatuya
74cc637858 [2244] make sure restarting components only when they are in config.
this should fix the main problem of this ticket.
2012-10-04 22:10:40 -07:00
JINMEI Tatuya
fa1d1161f7 [2244] a minor editorial fix to the previous comment update 2012-10-04 21:08:55 -07:00
JINMEI Tatuya
17bffd0838 [2244] added comment about has_comonent as it may not be very obvious. 2012-10-04 20:53:37 -07:00
JINMEI Tatuya
0ff7d113eb [2244] added a simple has_component() method to configurtor.
should be pretty trivial, so added a couple of test cases as part of
other tests.
2012-10-04 17:55:57 -07:00
JINMEI Tatuya
3584fbbffa [2244] make sure configurtor's build_plan() handles 'failed' component.
this fixes the test case introduced at the beginning of the branch.
2012-10-04 17:38:43 -07:00
JINMEI Tatuya
bff3846230 [2244] introduced a new "Failed" state of Component. 2012-10-04 17:37:09 -07:00