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

12379 Commits

Author SHA1 Message Date
Marcin Siodelski
6c12b4328d [2316] Replace constructor with default param values with constructor
without parameters.

Having constructor with default params values caused build issues on
Mac/clang which complained about not providing constructor's params and ignores
default ones.
2012-10-23 15:51:15 +02:00
Marcin Siodelski
9bb3d27efd [2316] Changes according to code review. 2012-10-17 21:31:06 +02:00
Marcin Siodelski
82c0737d3d [2316] Added option collection to the Subnet class. 2012-10-16 17:09:47 +02:00
Mukund Sivaraman
932edbb0ec Merge branch 'master' into trac2302 2012-10-14 20:13:42 +05:30
JINMEI Tatuya
f97ecbe97b [master] add changelog entry for #2340 2012-10-11 10:42:39 -07:00
JINMEI Tatuya
e78384f8c6 Merge branch 'trac2340' of ssh://git.bind10.isc.org/var/bind10/git/bind10 into trac2340
with fixing Conflicts:
2012-10-11 10:35:09 -07:00
JINMEI Tatuya
bc03b9cc89 Merge branch 'master' into trac2340
with fixing conflicts in
	ChangeLog
	examples/README
2012-10-11 10:22:29 -07:00
JINMEI Tatuya
55be177fc4 [2340] removed a bogus 'test' within a test(1) expression. 2012-10-11 10:04:42 -07:00
JINMEI Tatuya
16823263f5 [master] changelog for #2339 2012-10-11 10:04:42 -07:00
JINMEI Tatuya
ecdf1aeb4b [2339] changed the search order of python executable: seek python3.x first.
this works around a bit awkward installation setup where there's a link
from "python3" to "python3.x" but not from "python3-config" to the
corresponding "python3.x-config".  That happens for recent versions of
Homebrew.
2012-10-11 10:04:42 -07:00
Michal 'vorner' Vaner
b6501267d7 Compilation fix: usual static_cast<X*>(NULL)
Sunstudio is unhappy with plain NULL inside EXPECT_EQ and thinks it is
int. This makes it think otherwise.
2012-10-11 10:04:41 -07:00
Michal 'vorner' Vaner
47cfab4fa9 Remove extra comma at the end of enum
This should fix compilation issue on sunstudio.
2012-10-11 10:04:41 -07:00
JINMEI Tatuya
bd7ef43a90 [master] added changelog for #2244 2012-10-11 10:04:41 -07:00
JINMEI Tatuya
aea67d4949 [master] a minor grammar fix to changelog entry. 2012-10-11 10:04:41 -07:00
JINMEI Tatuya
52ba8a9314 [2244] missing update: Component.running() was renamed is_running(). 2012-10-11 10:04:41 -07:00
JINMEI Tatuya
ed72f2bf21 [2244] renamed BaseComponent.is_failed() to is_restarting().
so it sounds more natural as an English term.
2012-10-11 10:04:40 -07:00
JINMEI Tatuya
ff2fabced6 [2244] fixed a typo in a log message. 2012-10-11 10:04:40 -07:00
JINMEI Tatuya
dda8b3fa72 [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-11 10:04:40 -07:00
JINMEI Tatuya
35bdd068cf [2244] cleanup: reordered log message file 2012-10-11 10:04:40 -07:00
JINMEI Tatuya
1645116db4 [2244] make sure restarting components only when they are in config.
this should fix the main problem of this ticket.
2012-10-11 10:04:40 -07:00
JINMEI Tatuya
6207e0ccf7 [2244] a minor editorial fix to the previous comment update 2012-10-11 10:04:39 -07:00
JINMEI Tatuya
e3079eb5ce [2244] added comment about has_comonent as it may not be very obvious. 2012-10-11 10:04:39 -07:00
JINMEI Tatuya
5097c34950 [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-11 10:04:39 -07:00
JINMEI Tatuya
9f77979fd6 [2244] make sure configurtor's build_plan() handles 'failed' component.
this fixes the test case introduced at the beginning of the branch.
2012-10-11 10:04:39 -07:00
JINMEI Tatuya
a969883cd4 [2244] introduced a new "Failed" state of Component. 2012-10-11 10:04:39 -07:00
JINMEI Tatuya
214377d851 [2244] added a test case that reproduces one aspect of the problem.
the configurator should be able to delete a component to be removed
even if the it's failing (unexpectedly).  The current implementation
doesn't handle that condition correctly.
2012-10-11 10:04:38 -07:00
JINMEI Tatuya
c76f74659b [2204] removed an obsolete comment that only made sense for the previous code. 2012-10-11 10:04:38 -07:00
JINMEI Tatuya
64bcd98477 [2204] added notes about future extensions of incremental datasrc config update 2012-10-11 10:04:38 -07:00
JINMEI Tatuya
0fc7d94b29 [2204] grammar fix in documentation 2012-10-11 10:04:38 -07:00
JINMEI Tatuya
5703d87a9e [2204] updated test comments without using "rollback".
as the new code actually doesn't do rollback operation internally,
even though the observable effect is the same.
2012-10-11 10:04:38 -07:00
JINMEI Tatuya
4d27a4533c [2204] updated comments about releasing old data source client lists
the previous one was not really accurate and was confusing.
2012-10-11 10:04:37 -07:00
JINMEI Tatuya
a6cafe644f [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-11 10:04:37 -07:00
JINMEI Tatuya
52272e7986 [2204] regression fix: make sure the datasrc config is installed to server. 2012-10-11 10:04:37 -07:00
JINMEI Tatuya
ed2aceb01d [2204] removed server function/template param from configureDataSourceGeneric.
This is pure cleanup.  This function already doesn't use the server.
2012-10-11 10:04:37 -07:00
JINMEI Tatuya
b15be74974 [2204] extracted swapDataSrcClientLists() from configureDataSource().
now configureDataSource() can take time.
2012-10-11 10:04:37 -07:00
JINMEI Tatuya
d7e42bb0c4 [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-11 10:04:36 -07:00
JINMEI Tatuya
919fe74ccb [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-11 10:04:36 -07:00
JINMEI Tatuya
f44918fd6c [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-11 10:04:36 -07:00
Michal 'vorner' Vaner
44b1d42219 [2292] Add a TODO about re-adding tests
Planned for merge #2268
2012-10-11 10:04:36 -07:00
Michal 'vorner' Vaner
3efb1402e7 [2292] Clarify test
And make it slightly stronger (it now checks something that should be
mostly obvious too, but who knows, with software).
2012-10-11 10:04:35 -07:00
Michal 'vorner' Vaner
a3953a556b [2292] Pass the old zone back
Instead of releasing it directly. While the internal release was more
convenient, it didn't allow for swapping things fast under a mutex and
then spending the time releasing it unlocked.
2012-10-11 10:04:35 -07:00
Michal 'vorner' Vaner
ea4149ff70 [2292] Don't pass SegmentObjectHolder
It is supposed to be mostly private. Use it internally only.
2012-10-11 10:04:35 -07:00
JINMEI Tatuya
7b2aa97d01 [2292] minor cleanups: constify, indentation 2012-10-11 10:04:35 -07:00
Michal 'vorner' Vaner
e84770a805 [2292] Update tests
They don't need the mutable versions to work, but they used them anyway.
2012-10-11 10:04:35 -07:00
Michal 'vorner' Vaner
fa5076be0c [2292] Re-add version of find removed by accident
This one was not mutable, it just took Name as an argument.
2012-10-11 10:04:34 -07:00
Michal 'vorner' Vaner
b31ee9e471 [2292] Drop tests for InMemoryClient::add
As the method was removed.
2012-10-11 10:04:34 -07:00
Michal 'vorner' Vaner
45ae6bad11 [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-11 10:04:34 -07:00
Michal 'vorner' Vaner
a270e0425f [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-11 10:04:34 -07:00
Michal 'vorner' Vaner
0a23277c5b [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-11 10:04:34 -07:00
Michal 'vorner' Vaner
bb347f1941 [2292] Get rid of the const_cast
It was needed when extracting data from a domain tree chain. The chain
now can hold mutable pointers too, so we use that (and some amount of
template bureaucracy) to avoid the cast.

While the interface changed (on the core find function, it is not
possible to pass const node chain and have a mutable node get out), it
doesn't seem to influence the current code. Also, it is a private
interface anyway, so it should be safe.
2012-10-11 10:04:33 -07:00