csync_update: Don't fetch the etag in the local discovery from the DB
authorOlivier Goffart <ogoffart@woboq.com>
Wed, 21 Oct 2015 12:17:30 +0000 (14:17 +0200)
committerOlivier Goffart <ogoffart@woboq.com>
Wed, 21 Oct 2015 14:38:26 +0000 (16:38 +0200)
commit9c388787bbe99a4fa0ae5038e8c5bdb0356ab92e
treede8c076f0f75041e7acf8e30c4b3d104938a1bfa
parentf739d8fdd3ec881c7a64cfb12f885344c8de9186
csync_update: Don't fetch the etag in the local discovery from the DB

We don't need it, and it's slow.
This saves a lot of DB queries

(Also replaced a strlen>0 with a faster check)
csync/src/csync_statedb.c
csync/src/csync_update.c
src/libsync/syncengine.cpp
test/testcsyncsqlite.h