Code

sysdb.git
9 years agoAdded upstream homepages to backend manpages.
Sebastian Harl [Mon, 21 Jul 2014 20:19:18 +0000 (22:19 +0200)]
Added upstream homepages to backend manpages.

9 years agosysdbql(7): Updated based on latest changes to the query language.
Sebastian Harl [Mon, 21 Jul 2014 17:42:56 +0000 (19:42 +0200)]
sysdbql(7): Updated based on latest changes to the query language.

9 years agostore, frontend: Switch from <obj>.name to <obj>.
Sebastian Harl [Mon, 21 Jul 2014 16:51:48 +0000 (18:51 +0200)]
store, frontend: Switch from <obj>.name to <obj>.

This feels a bit more natural and no longer shadows attributes called "name".

9 years agostore_lookup: Don't allow 'IS <non-NULL>'.
Sebastian Harl [Mon, 21 Jul 2014 07:16:44 +0000 (09:16 +0200)]
store_lookup: Don't allow 'IS <non-NULL>'.

This would have been silently treated as 'IS NULL'.

9 years agosysdb: Fixed a memory leak in an error condition.
Sebastian Harl [Sun, 20 Jul 2014 20:34:42 +0000 (22:34 +0200)]
sysdb: Fixed a memory leak in an error condition.

Thanks to clang-analyze for identifying this!

9 years agovalgrind.suppress: Added a leak inside libnss as seen on Travis CI.
Sebastian Harl [Sun, 20 Jul 2014 19:47:36 +0000 (21:47 +0200)]
valgrind.suppress: Added a leak inside libnss as seen on Travis CI.

9 years agotest_lib.sh: Let integration tests use valgrind.suppress as well.
Sebastian Harl [Sun, 20 Jul 2014 19:43:52 +0000 (21:43 +0200)]
test_lib.sh: Let integration tests use valgrind.suppress as well.

9 years agostore_lookup_test: Added some tests for attribute.FOO IS NULL.
Sebastian Harl [Sun, 20 Jul 2014 19:24:42 +0000 (21:24 +0200)]
store_lookup_test: Added some tests for attribute.FOO IS NULL.

9 years agostore, frontend: Added support for matching NULL attributes.
Sebastian Harl [Sun, 20 Jul 2014 18:55:44 +0000 (20:55 +0200)]
store, frontend: Added support for matching NULL attributes.

This matches any hosts which are missing the specified attribute.

9 years agot/integration/simple_config.sh: Test some more invalid settings.
Sebastian Harl [Sat, 19 Jul 2014 12:51:58 +0000 (14:51 +0200)]
t/integration/simple_config.sh: Test some more invalid settings.

9 years agot/integration/simple_config.sh: Test reconfiguration.
Sebastian Harl [Sat, 19 Jul 2014 12:42:46 +0000 (14:42 +0200)]
t/integration/simple_config.sh: Test reconfiguration.

9 years agot/integration/simple_config.sh: Run the tools using -h and -V.
Sebastian Harl [Sat, 19 Jul 2014 12:36:44 +0000 (14:36 +0200)]
t/integration/simple_config.sh: Run the tools using -h and -V.

9 years agot/integration/simple_query.sh: Pass in queries through stdin as well.
Sebastian Harl [Sat, 19 Jul 2014 12:25:55 +0000 (14:25 +0200)]
t/integration/simple_query.sh: Pass in queries through stdin as well.

This covers some more code.

9 years agosysdb: Fixed a memory leak on EOF from the server.
Sebastian Harl [Sat, 19 Jul 2014 12:20:03 +0000 (14:20 +0200)]
sysdb: Fixed a memory leak on EOF from the server.

9 years agosysdb: Use non-callback readline mode when non-interactive.
Sebastian Harl [Sat, 19 Jul 2014 12:06:33 +0000 (14:06 +0200)]
sysdb: Use non-callback readline mode when non-interactive.

libedit's implementation of the callback-mode does not play well in
non-interactive mode (e.g. it does not correctly detect EOF) but works fine
when using readline().

Also, there's no need for the somewhat more complex callback mode in
non-interactive operation anyway.

9 years agoplugin: Report an error if a collector's interval cannot be determined.
Sebastian Harl [Sat, 19 Jul 2014 11:45:12 +0000 (13:45 +0200)]
plugin: Report an error if a collector's interval cannot be determined.

Else, we'll get weird behavior when, for example, using LoadPlugin instead of
LoadBackend in sysdbd.

9 years agot/coverage.sh: Output the content of t/test-suite.log in case of a failure.
Sebastian Harl [Sat, 19 Jul 2014 11:36:03 +0000 (13:36 +0200)]
t/coverage.sh: Output the content of t/test-suite.log in case of a failure.

9 years agot/testwrapper: Let valgrind generate suppressions for all failures.
Sebastian Harl [Sat, 19 Jul 2014 11:35:19 +0000 (13:35 +0200)]
t/testwrapper: Let valgrind generate suppressions for all failures.

These are printed to stdout.

9 years agot/valgrind.suppress: Updated existing suppression for newer check version.
Sebastian Harl [Sat, 19 Jul 2014 11:34:18 +0000 (13:34 +0200)]
t/valgrind.suppress: Updated existing suppression for newer check version.

(Keeping the old around for people using the old version of check, e.g.
Travis.)

9 years agot/: Include testwrapper.sh in the distribution tarball.
Sebastian Harl [Sat, 19 Jul 2014 11:28:28 +0000 (13:28 +0200)]
t/: Include testwrapper.sh in the distribution tarball.

9 years agot/valgrind.suppress: Suppress another error in check.
Sebastian Harl [Sat, 19 Jul 2014 11:21:48 +0000 (13:21 +0200)]
t/valgrind.suppress: Suppress another error in check.

9 years agot/cibuild.sh: Still use TESTS_ENVIRONMENT="./testwrapper.sh".
Sebastian Harl [Sat, 19 Jul 2014 06:30:43 +0000 (08:30 +0200)]
t/cibuild.sh: Still use TESTS_ENVIRONMENT="./testwrapper.sh".

LOG_COMPILER is not supported by older automake versions.

9 years agot/: Always use testwrapper.sh for running tests.
Sebastian Harl [Fri, 18 Jul 2014 06:42:07 +0000 (08:42 +0200)]
t/: Always use testwrapper.sh for running tests.

… using automake's LOG_COMPILER variable.

9 years agodata_test: Fixed access to uninitialized memory.
Sebastian Harl [Fri, 11 Jul 2014 15:47:38 +0000 (17:47 +0200)]
data_test: Fixed access to uninitialized memory.

9 years agoavltree: Iterate through the tree depth-first when clearing it.
Sebastian Harl [Fri, 11 Jul 2014 15:42:33 +0000 (17:42 +0200)]
avltree: Iterate through the tree depth-first when clearing it.

Else, we cannot simple delete each node but we'd have to actually remove it
from the tree because we'd be removing non-leaf nodes.

Don't use recursion for iterating the tree. It's not needed and would
consume stack-space unnecessarily. The current approach limits the size of the
tree by heap memory only.

9 years agostore: Use AVL trees to store all objects.
Sebastian Harl [Fri, 11 Jul 2014 14:57:33 +0000 (16:57 +0200)]
store: Use AVL trees to store all objects.

9 years agoavltree: Always compare objects by name.
Sebastian Harl [Fri, 11 Jul 2014 06:06:45 +0000 (08:06 +0200)]
avltree: Always compare objects by name.

We don't need a custom compare function (for now) and correctly passing in a
const string when comparing based on objects is annoying to get right.

9 years agoavltree: Added documentation for all functions.
Sebastian Harl [Thu, 10 Jul 2014 06:26:10 +0000 (08:26 +0200)]
avltree: Added documentation for all functions.

9 years agoavltree: Added sdb_avltree_lookup().
Sebastian Harl [Wed, 9 Jul 2014 19:49:30 +0000 (21:49 +0200)]
avltree: Added sdb_avltree_lookup().

9 years agoobject: Added SDB_OBJECT_STATIC.
Sebastian Harl [Wed, 9 Jul 2014 19:36:49 +0000 (21:36 +0200)]
object: Added SDB_OBJECT_STATIC.

This is a helper to initialize static, named objects.

Replaced SSTRING_OBJ (which was basically the same) used by unit tests.

9 years agoobject: Static wrapper objects cannot have a destructor.
Sebastian Harl [Wed, 9 Jul 2014 19:33:27 +0000 (21:33 +0200)]
object: Static wrapper objects cannot have a destructor.

We cannot free the static memory and, thus, cannot destroy the object.

9 years agoavltree.h: Removed obsolete TODO note.
Sebastian Harl [Wed, 9 Jul 2014 19:26:52 +0000 (21:26 +0200)]
avltree.h: Removed obsolete TODO note.

AVL trees *are* balanced now :-)

9 years agoavltree: Added helper function sdb_avltree_valid().
Sebastian Harl [Wed, 9 Jul 2014 19:07:58 +0000 (21:07 +0200)]
avltree: Added helper function sdb_avltree_valid().

The function walks the entire tree and checks each node for problems (e.g.
unbalanced nodes, wrong height, missing child/parent links).

Use the function in the unit tests (which is the primary use for the function
anyway ;-)).

9 years agoerror.h: Removed long-unused constant.
Sebastian Harl [Wed, 9 Jul 2014 13:39:17 +0000 (15:39 +0200)]
error.h: Removed long-unused constant.

9 years agoavltree: Don't leak memory when clearing the tree.
Sebastian Harl [Wed, 9 Jul 2014 09:44:17 +0000 (11:44 +0200)]
avltree: Don't leak memory when clearing the tree.

Remove all nodes starting at the smallest instead of at the root.

9 years agoavltree: Added helper to determine smallest node.
Sebastian Harl [Wed, 9 Jul 2014 09:34:10 +0000 (11:34 +0200)]
avltree: Added helper to determine smallest node.

9 years agoavltree: Lock the tree during insertion.
Sebastian Harl [Wed, 9 Jul 2014 07:55:23 +0000 (09:55 +0200)]
avltree: Lock the tree during insertion.

9 years agoavltree: Rebalance the tree after inserting a new element.
Sebastian Harl [Wed, 9 Jul 2014 07:52:07 +0000 (09:52 +0200)]
avltree: Rebalance the tree after inserting a new element.

9 years agoavltree_test: Degenerate (unbalanced) test-tree even more.
Sebastian Harl [Tue, 8 Jul 2014 20:14:32 +0000 (22:14 +0200)]
avltree_test: Degenerate (unbalanced) test-tree even more.

9 years agoavltree: Removed some irrelevant special cases.
Sebastian Harl [Tue, 8 Jul 2014 20:08:55 +0000 (22:08 +0200)]
avltree: Removed some irrelevant special cases.

9 years agosysdb.h: Added helpers to compare two values.
Sebastian Harl [Tue, 8 Jul 2014 19:42:45 +0000 (21:42 +0200)]
sysdb.h: Added helpers to compare two values.

9 years agocoverage.sh: Ignore *.y / *.l files.
Sebastian Harl [Tue, 8 Jul 2014 18:41:03 +0000 (20:41 +0200)]
coverage.sh: Ignore *.y / *.l files.

lcov cannot handle them correctly.

9 years agoavltree_test: Test duplicate detection and clear() as well.
Sebastian Harl [Tue, 8 Jul 2014 18:40:33 +0000 (20:40 +0200)]
avltree_test: Test duplicate detection and clear() as well.

9 years agoutils avltree: Started implementation of an AVL tree.
Sebastian Harl [Tue, 8 Jul 2014 17:51:07 +0000 (19:51 +0200)]
utils avltree: Started implementation of an AVL tree.

So far, it's just an unbalanced binary tree, though ;-)

9 years agoMoved compare and lookup callback types from utils/llist to core/object.
Sebastian Harl [Sat, 5 Jul 2014 09:15:56 +0000 (11:15 +0200)]
Moved compare and lookup callback types from utils/llist to core/object.

9 years agoMakefile: Install utils/os.h as well.
Sebastian Harl [Sat, 5 Jul 2014 08:45:11 +0000 (10:45 +0200)]
Makefile: Install utils/os.h as well.

9 years agocollectd::unixsock backend: Store plugin identifier as service attributes.
Sebastian Harl [Sat, 5 Jul 2014 08:40:44 +0000 (10:40 +0200)]
collectd::unixsock backend: Store plugin identifier as service attributes.

9 years agocollectd::unixsock backend: Added support for spaces in identifiers.
Sebastian Harl [Sat, 5 Jul 2014 08:28:11 +0000 (10:28 +0200)]
collectd::unixsock backend: Added support for spaces in identifiers.

Don't treat space as a field separator for LISTVAL responses. Instead, split
of the update timestamp from the hostname after splitting at slash characters
only.

9 years agostore: Reduce logging about "old" values.
Sebastian Harl [Sat, 5 Jul 2014 08:25:31 +0000 (10:25 +0200)]
store: Reduce logging about "old" values.

Don't log, if the same timestamp was used to submit the value. This avoids
excessive noise in the logs on high sampling rates.

9 years agounixsock, data: Moved sdb_unixsock_parse_cell() to sdb_data_parse().
Sebastian Harl [Fri, 4 Jul 2014 20:48:44 +0000 (22:48 +0200)]
unixsock, data: Moved sdb_unixsock_parse_cell() to sdb_data_parse().

The function parses a string into a datum. For date-time values, floating
point seconds since the epoch are supported only.

Added unit tests.

9 years agostore: Include service attributes in JSON output.
Sebastian Harl [Fri, 4 Jul 2014 19:06:21 +0000 (21:06 +0200)]
store: Include service attributes in JSON output.

9 years agostore: Don't update unchanged attribute values.
Sebastian Harl [Fri, 4 Jul 2014 18:57:41 +0000 (20:57 +0200)]
store: Don't update unchanged attribute values.

When handling dynamically allocated data, this would generate unnecessary
memory churn.

9 years agodata: Pass const pointers to sdb_data_cmp().
Sebastian Harl [Fri, 4 Jul 2014 18:57:19 +0000 (20:57 +0200)]
data: Pass const pointers to sdb_data_cmp().

9 years agostore: Don't overwrite attribute values if the new timestamp is too old.
Sebastian Harl [Fri, 4 Jul 2014 18:42:58 +0000 (20:42 +0200)]
store: Don't overwrite attribute values if the new timestamp is too old.

Also, extended the unit tests to catch this error.

9 years agostore: Introduced service attributes.
Sebastian Harl [Fri, 4 Jul 2014 18:38:52 +0000 (20:38 +0200)]
store: Introduced service attributes.

9 years agostore: Consider objects too old if the new timestamp matches the old.
Sebastian Harl [Fri, 4 Jul 2014 18:35:26 +0000 (20:35 +0200)]
store: Consider objects too old if the new timestamp matches the old.

In theory, this doesn't make a big difference as either approach will let the
result depend on the order of update operations. However, considering more
cases as too old will allow to ignore more stuff and, thus, avoid some work.

9 years agodata: Improved memory handling in data_copy().
Sebastian Harl [Thu, 3 Jul 2014 16:38:13 +0000 (18:38 +0200)]
data: Improved memory handling in data_copy().

Ensure that dynamic memory in the destination is freed before copying the new
data. That'll avoid that the caller has to use data_free_datum() first and
destroy previous data even if the copy fails.

9 years agostore: Don't destroy an attribute if data_copy() failed.
Sebastian Harl [Thu, 3 Jul 2014 16:37:17 +0000 (18:37 +0200)]
store: Don't destroy an attribute if data_copy() failed.

Else, the store would reference invalid memory.

9 years agostore: Split internal store_obj() function into multiple functions.
Sebastian Harl [Thu, 3 Jul 2014 16:18:54 +0000 (18:18 +0200)]
store: Split internal store_obj() function into multiple functions.

This avoids a couple of unnecessary checks and will allow to reuse some parts.

9 years agoversion-gen.sh: Added .git suffix to default version again.
Sebastian Harl [Wed, 2 Jul 2014 05:57:14 +0000 (07:57 +0200)]
version-gen.sh: Added .git suffix to default version again.

9 years agoRelease SysDB 0.2.0. sysdb-0.2.0
Sebastian Harl [Wed, 2 Jul 2014 05:31:30 +0000 (07:31 +0200)]
Release SysDB 0.2.0.

9 years agosysdbql(7): Documented conditional attribute matchers.
Sebastian Harl [Wed, 2 Jul 2014 05:26:35 +0000 (07:26 +0200)]
sysdbql(7): Documented conditional attribute matchers.

9 years agoReleaseNotes: Added release 0.2.0.
Sebastian Harl [Tue, 1 Jul 2014 20:27:11 +0000 (22:27 +0200)]
ReleaseNotes: Added release 0.2.0.

9 years agoMerged branch 'master' of git://git.tokkee.org/sysdb.
Sebastian Harl [Tue, 1 Jul 2014 20:01:13 +0000 (22:01 +0200)]
Merged branch 'master' of git://git.tokkee.org/sysdb.

9 years agostore: Include backend information in the JSON serialization.
Sebastian Harl [Tue, 1 Jul 2014 19:59:29 +0000 (21:59 +0200)]
store: Include backend information in the JSON serialization.

9 years agostore: Store the backend of each stored object.
Sebastian Harl [Tue, 1 Jul 2014 19:58:06 +0000 (21:58 +0200)]
store: Store the backend of each stored object.

The backends are stored as a list of the plugin names of the plugins providing
the respective object.

9 years agoplugin: Added sdb_plugin_current().
Sebastian Harl [Tue, 1 Jul 2014 19:56:02 +0000 (21:56 +0200)]
plugin: Added sdb_plugin_current().

This function returns the plugin information for the plugin from which the
current call into the core originated.

9 years agoplugin: Make sdb_plugin_info_t public.
Sebastian Harl [Tue, 1 Jul 2014 19:55:16 +0000 (21:55 +0200)]
plugin: Make sdb_plugin_info_t public.

9 years agostore: Split out common JSON code into a separate helper function.
Sebastian Harl [Tue, 1 Jul 2014 19:41:33 +0000 (21:41 +0200)]
store: Split out common JSON code into a separate helper function.

9 years agoTravis: Ignore .y/.l files when running cpp-coveralls.
Sebastian Harl [Mon, 30 Jun 2014 18:46:47 +0000 (20:46 +0200)]
Travis: Ignore .y/.l files when running cpp-coveralls.

9 years agoos_test: Added tests for os_mkdir_all() and os_remove_all().
Sebastian Harl [Mon, 30 Jun 2014 06:41:06 +0000 (08:41 +0200)]
os_test: Added tests for os_mkdir_all() and os_remove_all().

9 years agoutils os: Added sdb_remove_all() to recursively remove a path.
Sebastian Harl [Mon, 30 Jun 2014 06:40:08 +0000 (08:40 +0200)]
utils os: Added sdb_remove_all() to recursively remove a path.

9 years agoconnection_test: Use mkstemp() instead of tmpnam().
Sebastian Harl [Mon, 30 Jun 2014 06:19:58 +0000 (08:19 +0200)]
connection_test: Use mkstemp() instead of tmpnam().

9 years agosock_test: Use mkstemp() instead of tmpnam().
Sebastian Harl [Mon, 30 Jun 2014 06:15:14 +0000 (08:15 +0200)]
sock_test: Use mkstemp() instead of tmpnam().

9 years agoDon't free dirname()'s return value.
Sebastian Harl [Mon, 30 Jun 2014 06:13:53 +0000 (08:13 +0200)]
Don't free dirname()'s return value.

It may point to static memory.

9 years agoutils os: Don't enforce the mode on existing directories in mkdir_all().
Sebastian Harl [Sun, 29 Jun 2014 19:52:30 +0000 (21:52 +0200)]
utils os: Don't enforce the mode on existing directories in mkdir_all().

This behaves badly when trying to create base directories like /var/run/ ;-)

9 years agofrontend: Ensure that the base directory of a UNIX socket exists.
Sebastian Harl [Sun, 29 Jun 2014 18:43:58 +0000 (20:43 +0200)]
frontend: Ensure that the base directory of a UNIX socket exists.

9 years agoutils os: Added sdb_mkdir_all() helper function.
Sebastian Harl [Sun, 29 Jun 2014 18:43:00 +0000 (20:43 +0200)]
utils os: Added sdb_mkdir_all() helper function.

This function recursively creates a directory (similar to 'mkdir -p' on the
command line).

9 years agosyslog plugin: Don't log DEBUG messages for now.
Sebastian Harl [Sun, 29 Jun 2014 16:01:48 +0000 (18:01 +0200)]
syslog plugin: Don't log DEBUG messages for now.

9 years agosyslog plugin: Initialize syslog as soon as possible.
Sebastian Harl [Sun, 29 Jun 2014 16:00:34 +0000 (18:00 +0200)]
syslog plugin: Initialize syslog as soon as possible.

Don't wait for the init callback to be called -- we might receive log messages
earlier than that.

9 years agoMerged branch 'master' of git://git.tokkee.org/sysdb.
Sebastian Harl [Sun, 29 Jun 2014 15:35:39 +0000 (17:35 +0200)]
Merged branch 'master' of git://git.tokkee.org/sysdb.

9 years agobuild system: Added --enable-gprof configure flag.
Sebastian Harl [Sat, 28 Jun 2014 08:07:55 +0000 (10:07 +0200)]
build system: Added --enable-gprof configure flag.

9 years agoplugin: Use multiple log entries when logging plugin information.
Sebastian Harl [Sat, 28 Jun 2014 07:36:31 +0000 (09:36 +0200)]
plugin: Use multiple log entries when logging plugin information.

… instead of using a multi-line log entry (which is ugly).

9 years agoplugin: The replaced SDB_PLUGIN_INFO_NAME with the actual plugin name.
Sebastian Harl [Sat, 28 Jun 2014 07:27:30 +0000 (09:27 +0200)]
plugin: The replaced SDB_PLUGIN_INFO_NAME with the actual plugin name.

There's no need for any duplication.

9 years agoplugin: Automatically prepend callback names with the plugin name.
Sebastian Harl [Sat, 28 Jun 2014 07:19:49 +0000 (09:19 +0200)]
plugin: Automatically prepend callback names with the plugin name.

9 years agocore: Automatically determine config callback names.
Sebastian Harl [Fri, 27 Jun 2014 18:11:24 +0000 (20:11 +0200)]
core: Automatically determine config callback names.

The plugin name (as stored in the plugin context) is used for that purpose,
thus, ensuring that Plugin/Backend blocks will always belong to the respective
LoadPlugin/LoadBackend options of the same name.

9 years agostore: Cleaned up variable name (obj_lock → host_lock).
Sebastian Harl [Fri, 27 Jun 2014 17:40:37 +0000 (19:40 +0200)]
store: Cleaned up variable name (obj_lock → host_lock).

9 years agostore_lookup: Use more specific types where appropriate.
Sebastian Harl [Fri, 27 Jun 2014 17:18:23 +0000 (19:18 +0200)]
store_lookup: Use more specific types where appropriate.

9 years agostore: Renamed store_base to store_obj.
Sebastian Harl [Fri, 27 Jun 2014 17:04:34 +0000 (19:04 +0200)]
store: Renamed store_base to store_obj.

9 years agostore: Split store_obj into separate host and service objects.
Sebastian Harl [Fri, 27 Jun 2014 16:46:57 +0000 (18:46 +0200)]
store: Split store_obj into separate host and service objects.

9 years agoMerged branch 'master' of git://git.tokkee.org/sysdb.
Sebastian Harl [Fri, 27 Jun 2014 16:08:29 +0000 (18:08 +0200)]
Merged branch 'master' of git://git.tokkee.org/sysdb.

9 years agostore: Simplified object lookup during update.
Sebastian Harl [Thu, 26 Jun 2014 21:05:36 +0000 (23:05 +0200)]
store: Simplified object lookup during update.

Again, based on having hosts on the toplevel only. This greatly simplifies the
overall structure. After all, this is the underlying storage layer only. More
complex relationships between objects will be handled on a different layer.

9 years agostore: Simplified object update based on having hosts on the toplevel only.
Sebastian Harl [Thu, 26 Jun 2014 20:55:47 +0000 (22:55 +0200)]
store: Simplified object update based on having hosts on the toplevel only.

9 years agostore: Renamed a store object's 'children' to 'services'.
Sebastian Harl [Thu, 26 Jun 2014 20:27:31 +0000 (22:27 +0200)]
store: Renamed a store object's 'children' to 'services'.

Hierarchical data will be represented using some object relationship
information rather than a weird tree construct below each host. That's going
to be more flexible.

9 years agostore: Removed obsolete TODO note.
Sebastian Harl [Thu, 26 Jun 2014 20:26:42 +0000 (22:26 +0200)]
store: Removed obsolete TODO note.

9 years agoplugin: Ignore internal loggers when checking for existing loggers.
Sebastian Harl [Wed, 25 Jun 2014 21:12:44 +0000 (23:12 +0200)]
plugin: Ignore internal loggers when checking for existing loggers.

An internal logger may currently be registered by the frontend which uses it
to send log messages to a client. Usually, these internal loggers will not
actually log stuff. Thus, we'll have to ignore them when deciding about
fallbacks.

9 years agosysdb: Wait for remaining data after the mainloop terminates.
Sebastian Harl [Wed, 25 Jun 2014 21:07:50 +0000 (23:07 +0200)]
sysdb: Wait for remaining data after the mainloop terminates.

9 years agoclient: Added sdb_client_shutdown().
Sebastian Harl [Wed, 25 Jun 2014 21:07:33 +0000 (23:07 +0200)]
client: Added sdb_client_shutdown().

9 years agoMakefile: For now, link libsysdb sources directly into sysdbd.
Sebastian Harl [Wed, 25 Jun 2014 08:40:21 +0000 (10:40 +0200)]
Makefile: For now, link libsysdb sources directly into sysdbd.

Libtool's convenience libraries don't work with programs. When linking sysdbd
previously, none of the libsysdb objects only used by plugins would have been
linked in. That is, the respective libraries could not be loaded when running
the daemon.

We'll keep the library around, though, since it's used for the unit tests.

This is just a hack but it'll go away after the API is stable and libsysdb is
turned back into a "real" library. That'll happen before the 1.0 release.

9 years agot/: Make mock_plugin a "check" library.
Sebastian Harl [Tue, 24 Jun 2014 17:51:14 +0000 (19:51 +0200)]
t/: Make mock_plugin a "check" library.

This way, it's only built on 'make check' (aka 'make test').