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:
@@ -3936,8 +3936,10 @@ seaf_get_total_file_number (GError **error)
|
||||
int ret = seaf_db_statement_foreach_row (seaf->db,
|
||||
"SELECT SUM(file_count) FROM RepoFileCount f "
|
||||
"LEFT JOIN VirtualRepo v "
|
||||
"ON f.repo_id=v.repo_id "
|
||||
"WHERE v.repo_id IS NULL",
|
||||
"ON f.repo_id=v.repo_id,"
|
||||
"Repo r "
|
||||
"WHERE v.repo_id IS NULL AND "
|
||||
"f.repo_id=r.repo_id",
|
||||
get_total_file_number_cb,
|
||||
&count, 0);
|
||||
if (ret < 0) {
|
||||
|
Reference in New Issue
Block a user