]> git.itanic.dy.fi Git - rrdd/commit
rrdtool.c: Improve error handling during database creation
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Wed, 20 Jun 2012 19:22:23 +0000 (22:22 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Wed, 20 Jun 2012 19:29:38 +0000 (22:29 +0300)
commit8867504d583af3745e6f9192125e285ab28d5911
tree98929e104a6435602b9d2561c2d54b9dd42d4f71
parent59cef4256f3002ae3dc4f5e60b160210d4d33b26
rrdtool.c: Improve error handling during database creation

The case of filename pointer being NULL was not handled. The logic for
testing whether the database file existed at all should not return
true in case the file name is zero. As this function can't return
failure code, the error of NULL filename pointer is handled later when
the database is being created.

As many missing databases are created as possible. In case of errors
we will continue hoping that we will be able to update at least
something.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
rrdtool.c