1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-16 15:18:58 +00:00

get_total_file_numer rpc do not include the file count of the deleted repo

This commit is contained in:
caixiangyue
2019-05-06 10:24:37 +00:00
parent 3a7b2f2bea
commit 7a7a2bb38f

View File

@@ -3936,8 +3936,10 @@ seaf_get_total_file_number (GError **error)
int ret = seaf_db_statement_foreach_row (seaf->db, int ret = seaf_db_statement_foreach_row (seaf->db,
"SELECT SUM(file_count) FROM RepoFileCount f " "SELECT SUM(file_count) FROM RepoFileCount f "
"LEFT JOIN VirtualRepo v " "LEFT JOIN VirtualRepo v "
"ON f.repo_id=v.repo_id " "ON f.repo_id=v.repo_id,"
"WHERE v.repo_id IS NULL", "Repo r "
"WHERE v.repo_id IS NULL AND "
"f.repo_id=r.repo_id",
get_total_file_number_cb, get_total_file_number_cb,
&count, 0); &count, 0);
if (ret < 0) { if (ret < 0) {