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)
committerJocelyn Turcotte <jturcotte@woboq.com>
Mon, 18 Sep 2017 12:00:52 +0000 (14:00 +0200)
commit6e240a3e9c78ba5c9c1b864d7906179615edd154
tree51e8b437dbbd69c1d38ba3b8ba91239a6e1bcb2e
parenta1f1775d159c9ce3c7c0e569fe4f20f80a2bcf00
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