#define SYSERR(x) do { conf->log->error = 2; return conf->errabort; } while (0)
 
 
+/* TODO handle other ops properly */
 static char *ops[] = { "new", "remove", "update", 0 };
 
 enum op {
        }
        sqlite3_str_appendall(s, " as dest from syncinfo");
 
-       sqlite3_str_appendall(s," where configuration > 0");
+       sqlite3_str_appendall(s," where configuration > 0 and op in ('new','update','remove')");
 
        if (conf->reverse) {
                sqlite3_str_appendall(s," order by length(path) desc, path desc");