]>
git.ipfire.org Git - thirdparty/kea.git/log
Mukund Sivaraman [Sun, 21 Oct 2012 23:30:34 +0000 (05:00 +0530)]
[2198] Check pthread_mutex_trylock()'s return value
Mukund Sivaraman [Sun, 14 Oct 2012 18:33:13 +0000 (00:03 +0530)]
[2198] Revert include to local
Mukund Sivaraman [Sun, 14 Oct 2012 16:52:35 +0000 (22:22 +0530)]
[2198] Stop using direct lock methods on Mutex inside InterprocessSyncFile
Mukund Sivaraman [Sun, 21 Oct 2012 23:28:20 +0000 (04:58 +0530)]
[2198] Fix include filename
Mukund Sivaraman [Sun, 21 Oct 2012 23:27:51 +0000 (04:57 +0530)]
[2198] Make direct methods on Mutex private
Mukund Sivaraman [Sun, 21 Oct 2012 23:26:07 +0000 (04:56 +0530)]
[2198] Add a block argument to Mutex::Locker's constructor
Mukund Sivaraman [Sun, 21 Oct 2012 23:23:47 +0000 (04:53 +0530)]
[2198] Add AlreadyLocked exception to Mutex::Locker
Mukund Sivaraman [Wed, 10 Oct 2012 14:41:09 +0000 (20:11 +0530)]
[2198] Remove dependency on libb10-util in src/lib/util/unittests/
Mukund Sivaraman [Tue, 9 Oct 2012 21:35:46 +0000 (03:05 +0530)]
[2198] First use a mutex for mutual exclusion among threads, then a lock file
Mukund Sivaraman [Sun, 21 Oct 2012 23:20:00 +0000 (04:50 +0530)]
[2198] Add Mutex::tryLock() and make lock methods public
tryLock() is necessary inside InterprocessSyncFile. It also doesn't
make sense afterwards to make a dynamically constructed Mutex::Locker
that lives after the basic block is exited. So lock() and unlock()
have also been made public.
I've added comments to discourage the use of these methods directly
and use the Mutex::Locker where applicable.
Mukund Sivaraman [Tue, 9 Oct 2012 20:05:38 +0000 (01:35 +0530)]
[2198] Test that locks work from threads
This test fails now because there's no mutual exclusion among threads
in the implementation.
Mukund Sivaraman [Tue, 9 Oct 2012 20:04:36 +0000 (01:34 +0530)]
[2198] Build threads directory first because . depends on it
Stephen Morris [Sat, 20 Oct 2012 21:52:25 +0000 (22:52 +0100)]
[2342] Now have addLease and getLease6 methods apparently working
Michal 'vorner' Vaner [Sat, 20 Oct 2012 13:11:43 +0000 (15:11 +0200)]
Add a virtual destructor
To fix compilation.
Michal 'vorner' Vaner [Sat, 20 Oct 2012 09:11:33 +0000 (11:11 +0200)]
Merge #2207
"define and implement (datasrc::memory::)ZoneUpdater class"
It is now ZoneWriter.
No changelog.
Conflicts:
src/lib/datasrc/memory/Makefile.am
Michal 'vorner' Vaner [Sat, 20 Oct 2012 09:09:58 +0000 (11:09 +0200)]
[2207] Note about compilation problem
JINMEI Tatuya [Sat, 20 Oct 2012 06:59:59 +0000 (23:59 -0700)]
[2211] (unrelated fix) make sure the first time config is installed
it's a topic of #2363, but the change is small and is better to be fixed
here because it would cause conflict.
JINMEI Tatuya [Sat, 20 Oct 2012 06:34:12 +0000 (23:34 -0700)]
[2211] added note about exception cases in remote config handler.
JINMEI Tatuya [Sat, 20 Oct 2012 06:08:53 +0000 (23:08 -0700)]
[2211] cleanup: removed now-unused stuff: auth_srv mutex, client lists, etc.
JINMEI Tatuya [Sat, 20 Oct 2012 05:56:39 +0000 (22:56 -0700)]
[2211] use data source client mgr for query_bench
JINMEI Tatuya [Sat, 20 Oct 2012 05:47:04 +0000 (22:47 -0700)]
[2211] use DataSrcClientsMgr in the remote config handler for data_sources.
JINMEI Tatuya [Sat, 20 Oct 2012 05:33:01 +0000 (22:33 -0700)]
[2211] test duplicate mgr holder acquisition instead using auth locker
the latter will soon be deprecated.
JINMEI Tatuya [Sat, 20 Oct 2012 05:27:30 +0000 (22:27 -0700)]
[2211] use DataSrcClientsMgr for query processing
JINMEI Tatuya [Sat, 20 Oct 2012 03:18:59 +0000 (20:18 -0700)]
[2211] make DataSrcClientsMgr and DataSrcClientsBuilder non copyable.
they are not expected to be copied, and I actually had a bug due to an
accidental copy. Making it non copyable will help avoid such bugs.
JINMEI Tatuya [Sat, 20 Oct 2012 03:15:16 +0000 (20:15 -0700)]
[2211] updated auth LoadZoneCommand so it uses the new DataSrcClientsMgr.
JINMEI Tatuya [Fri, 19 Oct 2012 23:53:01 +0000 (16:53 -0700)]
[2211] introduce DataSrcClientsMgr::Holder.
auth_srv test's clientList tests are now converted to clients manager's test.
("holder" tests).
JINMEI Tatuya [Fri, 19 Oct 2012 22:52:02 +0000 (15:52 -0700)]
[2211] create the client lists map in the DataSrcClientsMgr ctor.
this will help corner case considerations of it being NULL
JINMEI Tatuya [Fri, 19 Oct 2012 22:17:52 +0000 (15:17 -0700)]
[2211] added trivial getter for data source clients manager.
JINMEI Tatuya [Fri, 19 Oct 2012 22:07:32 +0000 (15:07 -0700)]
[2211] moved DataSrcClientsMgr object from main to auth_srv
this way we can avoid having a situtation that it's NULL.
JINMEI Tatuya [Fri, 19 Oct 2012 21:46:21 +0000 (14:46 -0700)]
[2211] added reconfigure() for DataSrcClientsMgr
JINMEI Tatuya [Fri, 19 Oct 2012 20:38:02 +0000 (13:38 -0700)]
[2207] style fix: folded a long line.
Michal 'vorner' Vaner [Fri, 19 Oct 2012 17:55:53 +0000 (19:55 +0200)]
[2207] Extend the strong-exception guarantee test
We try to put some data there and see it survived.
JINMEI Tatuya [Fri, 19 Oct 2012 17:55:19 +0000 (10:55 -0700)]
[2210] editorial cleanup: removed a redundant blank line.
Tomek Mrugalski [Fri, 19 Oct 2012 17:32:16 +0000 (19:32 +0200)]
[2324] AllocEngine is now part of b10-dhcpsrv lib.
JINMEI Tatuya [Fri, 19 Oct 2012 17:24:07 +0000 (10:24 -0700)]
[2210] style fix: adjusted brace position
JINMEI Tatuya [Fri, 19 Oct 2012 17:23:50 +0000 (10:23 -0700)]
[2210] (unrelated) cleanup: removed now-unnecessary include.
Michal 'vorner' Vaner [Fri, 19 Oct 2012 17:10:39 +0000 (19:10 +0200)]
[2207] Exceptions & asserts
Changed an exception for unexpected problem and removed a comment about
assert.
Michal 'vorner' Vaner [Fri, 19 Oct 2012 17:09:07 +0000 (19:09 +0200)]
[2207] Documentation update
Michal 'vorner' Vaner [Fri, 19 Oct 2012 16:58:57 +0000 (18:58 +0200)]
[2207] Use state variable
Instead of several boolean variables.
Tomek Mrugalski [Fri, 19 Oct 2012 16:57:09 +0000 (18:57 +0200)]
[2324] LeaseMgr tests improved.
JINMEI Tatuya [Fri, 19 Oct 2012 16:44:09 +0000 (09:44 -0700)]
[2210] style fix: use const& for catch
Jeremy C. Reed [Fri, 19 Oct 2012 15:17:23 +0000 (10:17 -0500)]
[trac2361] typo fix in comment
noticed this while editing file for previous commit
Jeremy C. Reed [Fri, 19 Oct 2012 15:14:44 +0000 (10:14 -0500)]
[trac2361] fix issue where the bind10 could not run in source tree
when the installation was not done yet.
I added extra local_plugins path and custom datasrc.spec plugin for that.
Mukund Sivaraman [Fri, 19 Oct 2012 00:38:14 +0000 (06:08 +0530)]
[2361] Make minor whitespace updates
Jelte Jansen [Thu, 18 Oct 2012 18:23:39 +0000 (20:23 +0200)]
[2210] assorted cleanups
A few more checks in test
cleaned up added headers
reordered log message file
Jelte Jansen [Thu, 18 Oct 2012 18:11:53 +0000 (20:11 +0200)]
[2210] move DataSrcClientListsPtr typedef
from AuthSrv:: (in auth_srv.h) to isc:datasrc:: (in client_list.h), the previous location wasn't really relevant now that it is used elsewhere, and this seemed the most logical location
Jelte Jansen [Thu, 18 Oct 2012 14:40:31 +0000 (16:40 +0200)]
[2210] Add support for reconfigure in datasrc_clients_mgr
Tomek Mrugalski [Thu, 18 Oct 2012 17:35:26 +0000 (19:35 +0200)]
[2324] increaseAddress() added in IterativeAllocator.
Tomek Mrugalski [Thu, 18 Oct 2012 17:33:50 +0000 (19:33 +0200)]
[2324] Basic operations for Memfile_Lease implemented
addLease6(), getLease6(IOAddress), deleteLease6(IOAddress) working.
That is a bare minimum that is required for testing allocation
engine.
JINMEI Tatuya [Thu, 18 Oct 2012 16:17:31 +0000 (09:17 -0700)]
[master] Merge branch 'master' of ssh://git.bind10.isc.org/var/bind10/git/bind10
JINMEI Tatuya [Thu, 18 Oct 2012 16:16:24 +0000 (09:16 -0700)]
[master] rename lock.h->sync.h, which was changed while #2205 was dev'ed
JINMEI Tatuya [Thu, 18 Oct 2012 16:10:12 +0000 (09:10 -0700)]
[master] Merge branch 'trac2205'
Jeremy C. Reed [Thu, 18 Oct 2012 15:54:00 +0000 (10:54 -0500)]
[master] add missing logger placeholder for RESOLVER_NON_IN_PACKET
See ticket #2366 for details.
Okayed by muks on jabber.
Note that no test checked this and I don't introduce any test
since I am pretty sure this code will no exist in any production
version of a resolver (since won't limit IN only).
Jeremy C. Reed [Thu, 18 Oct 2012 14:42:44 +0000 (09:42 -0500)]
[trac2361]Merge branch 'master' into trac2361
Jeremy C. Reed [Thu, 18 Oct 2012 14:40:55 +0000 (09:40 -0500)]
[trac2361] add new test for CHAOS version.bind and authors.bind TXT
Mukund Sivaraman [Thu, 18 Oct 2012 13:43:02 +0000 (19:13 +0530)]
[2236] Include and use the define from config.h
Mukund Sivaraman [Thu, 18 Oct 2012 13:42:37 +0000 (19:12 +0530)]
[2236] Add status whether debugging is enabled in configure output
This also fixes a bug where the AM_CONDITIONAL was not set properly.
Mukund Sivaraman [Thu, 18 Oct 2012 13:32:36 +0000 (19:02 +0530)]
[2236] Use ENABLE_DEBUG within the lock implementation
Mukund Sivaraman [Thu, 18 Oct 2012 13:32:04 +0000 (19:02 +0530)]
[2236] Add a --enable-debug configure flag
Jelte Jansen [Thu, 18 Oct 2012 13:03:28 +0000 (15:03 +0200)]
[master] remove include of moved file lock.h
(it is now sync.h, which was already included)
Acked on jabber by muks
Jelte Jansen [Thu, 18 Oct 2012 12:19:35 +0000 (14:19 +0200)]
[master] Merge branch 'trac2349'
Conflicts:
src/lib/util/threads/tests/lock_unittest.cc
Jelte Jansen [Thu, 18 Oct 2012 12:16:22 +0000 (14:16 +0200)]
[2205] initialize member signal_count
Stephen Morris [Thu, 18 Oct 2012 10:33:51 +0000 (11:33 +0100)]
[2342] getVersion() is now working
This change adds the code for prepared statement creation and the
template for retrieving information from the database.
Mukund Sivaraman [Thu, 18 Oct 2012 05:22:38 +0000 (10:52 +0530)]
[2208] Update ConfigurableClientList and other bits accordingly
Mukund Sivaraman [Thu, 18 Oct 2012 05:21:47 +0000 (10:51 +0530)]
[2208] Update InMemoryClient to take a ZoneTableSegment in its constructor
Mukund Sivaraman [Thu, 18 Oct 2012 05:20:42 +0000 (10:50 +0530)]
[2208] Make ZoneTableSegmentLocal manage a real ZoneTable object
* Change ZoneTableSegment accordingly
* Make ZoneTable hold its RRClass to use during its destruction
* Use a mock ZoneTableSegmentTest that takes a mem_segment so that
tests can check that all memory is deallocated at teardown.
JINMEI Tatuya [Thu, 18 Oct 2012 00:23:31 +0000 (17:23 -0700)]
[2205] minor style fix: brace position
JINMEI Tatuya [Thu, 18 Oct 2012 00:07:35 +0000 (17:07 -0700)]
[master] temporarily disabled destroyWhileWait due to compat issue with solaris
solaris's pthread_cond_destroy doesn't seem to fail reliably in this case
as the test expects.
JINMEI Tatuya [Wed, 17 Oct 2012 23:18:54 +0000 (16:18 -0700)]
[2205] reordered log messages
JINMEI Tatuya [Wed, 17 Oct 2012 23:17:39 +0000 (16:17 -0700)]
[2205] tried to improve what() message of some test exceptions
JINMEI Tatuya [Wed, 17 Oct 2012 23:15:10 +0000 (16:15 -0700)]
[2205] clarify the accessibility of DataSrcClientsBuilderBase
JINMEI Tatuya [Wed, 17 Oct 2012 23:12:50 +0000 (16:12 -0700)]
[2205] logged really unexpected exception in manager's dtor.
JINMEI Tatuya [Wed, 17 Oct 2012 23:05:51 +0000 (16:05 -0700)]
[2205] some wording fixes in-code documentation
JINMEI Tatuya [Wed, 17 Oct 2012 22:56:27 +0000 (15:56 -0700)]
[2205] avoid referencing post-destructor member variables.
by a bit ugly hack: we specialize some part of the destructor and make
a local copy of these variables so the tests can inspect them later.
JINMEI Tatuya [Wed, 17 Oct 2012 21:45:57 +0000 (14:45 -0700)]
[master] Merge branch 'trac2332'
commit.
commit.
Jelte Jansen [Wed, 17 Oct 2012 21:15:20 +0000 (23:15 +0200)]
[2349] use existing member running_query_ in tests
to delete AbstractRunningQuery objects returned by forward()
Marcin Siodelski [Wed, 17 Oct 2012 20:41:48 +0000 (22:41 +0200)]
[2304] Applied changes suggested in the second code review.
JINMEI Tatuya [Wed, 17 Oct 2012 20:07:40 +0000 (13:07 -0700)]
[2207] minor style cleanup: constify
Marcin Siodelski [Wed, 17 Oct 2012 19:29:08 +0000 (21:29 +0200)]
[2316] Changes according to code review.
JINMEI Tatuya [Wed, 17 Oct 2012 18:44:35 +0000 (11:44 -0700)]
[2207] editorial: folded a long line
JINMEI Tatuya [Wed, 17 Oct 2012 18:38:54 +0000 (11:38 -0700)]
[2207] editorial: folded long lines
JINMEI Tatuya [Wed, 17 Oct 2012 18:38:35 +0000 (11:38 -0700)]
[2207] one more fix of s/reloader/writer/
JINMEI Tatuya [Wed, 17 Oct 2012 17:49:19 +0000 (10:49 -0700)]
[2207] editorial: some more s/reloader/write/ changes in doc.
Stephen Morris [Wed, 17 Oct 2012 17:37:22 +0000 (18:37 +0100)]
[2342] Got the basic "open database" test working.
Tomek Mrugalski [Wed, 17 Oct 2012 16:06:46 +0000 (18:06 +0200)]
[2324] Initial, rough version of allocation engine implemented.
Tomek Mrugalski [Wed, 17 Oct 2012 16:06:05 +0000 (18:06 +0200)]
[2324] duid.h improvements.
JINMEI Tatuya [Wed, 17 Oct 2012 16:05:37 +0000 (09:05 -0700)]
[2332] renamed thread/lock.h to thread/sync.h as it's not only for locks now
Tomek Mrugalski [Wed, 17 Oct 2012 16:05:25 +0000 (18:05 +0200)]
[2324] Subnet now stores last allocated address.
Tomek Mrugalski [Wed, 17 Oct 2012 16:03:31 +0000 (18:03 +0200)]
[2324] LeaseMgr is now a meta-singleton
- only one of its derived classes can be instantiated
JINMEI Tatuya [Wed, 17 Oct 2012 15:59:58 +0000 (08:59 -0700)]
[2332] changed one exception to assert() based on review discussion
Jelte Jansen [Wed, 17 Oct 2012 13:19:43 +0000 (15:19 +0200)]
[master] Merge branch 'trac2223'
Marcin Siodelski [Wed, 17 Oct 2012 11:18:25 +0000 (13:18 +0200)]
[2270] Corrected some minor typos.
Michal 'vorner' Vaner [Wed, 17 Oct 2012 11:11:05 +0000 (13:11 +0200)]
[2207] Style: correct capitalization
Michal 'vorner' Vaner [Wed, 17 Oct 2012 11:10:08 +0000 (13:10 +0200)]
[2207] Test it cleans up automatically
Michal 'vorner' Vaner [Wed, 17 Oct 2012 10:59:23 +0000 (12:59 +0200)]
[2207] Throw better exception
Michal 'vorner' Vaner [Wed, 17 Oct 2012 10:49:49 +0000 (12:49 +0200)]
[2207] The parameter of local writer is Local as well
But the benefit of this change is questionable.
Michal 'vorner' Vaner [Wed, 17 Oct 2012 10:43:55 +0000 (12:43 +0200)]
[2207] Provide strong exception guarantee
Michal 'vorner' Vaner [Wed, 17 Oct 2012 10:23:33 +0000 (12:23 +0200)]
[2207] Update docs of ZoneWriterLocal
They were outdated, for previous version of the interface.
Michal 'vorner' Vaner [Wed, 17 Oct 2012 10:15:05 +0000 (12:15 +0200)]
[2207] Split off the local Writer
Into a separate file. It is not needed to be too public.
Michal 'vorner' Vaner [Wed, 17 Oct 2012 09:58:51 +0000 (11:58 +0200)]
[2207] Better documentation for LoadAction