pull/662/merge
Wang Jingkai 2023-10-11 13:12:27 -07:00 committed by GitHub
commit 6fbcf8b65a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -2681,8 +2681,12 @@ static int tracker_deal_service_query_storage( \
path_total_mbs[write_path_index], pStorageServer-> \ path_total_mbs[write_path_index], pStorageServer-> \
path_free_mbs[write_path_index], avg_reserved_mb)) path_free_mbs[write_path_index], avg_reserved_mb))
{ {
int i; int i, t;
for (i=0; i<pStoreGroup->store_path_count; i++) t = write_path_index + 1;
if (t >= pStoreGroup->store_path_count) {
t = 0;
}
for (i=t; i<pStoreGroup->store_path_count; i++)
{ {
if (tracker_check_reserved_space_path( \ if (tracker_check_reserved_space_path( \
pStorageServer->path_total_mbs[i], \ pStorageServer->path_total_mbs[i], \