csync_update: Remove the check for csync_get_statedb_exists
authorJocelyn Turcotte <jturcotte@woboq.com>
Thu, 14 Sep 2017 11:30:57 +0000 (13:30 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Thu, 5 Oct 2017 20:01:33 +0000 (22:01 +0200)
commit4e90bd7a5a88ecefddf12d756f10497e190a35d7
treee080f5cfa05862cc84d5f84197a7a9e7e27a3082
parent81e32e1a086277bfc56abf1f818017704a8cb53d
csync_update: Remove the check for csync_get_statedb_exists

This always returns true since _csync_statedb_is_empty also always
returns true. This function was initially intended to be a shortcut
in case the database doesn't contain any row, but has been broken since
27fb5d9128c3d326191d5f9f01dac4f715000682 and now won't return false
unless the statement fails.

The _last_db_return_error in _csync_detect_update would take care
of that code path in a more direct and clearer way anyway.
src/csync/csync_update.cpp