Merge branch 'fix-correct-num-clients-status' into 'develop'

Call the thread cleanup code when requesting `status`

See merge request open-source/flexnbd-c!46
This commit is contained in:
James Carter
2018-02-20 09:51:37 +00:00
4 changed files with 17 additions and 20 deletions

View File

@@ -332,6 +332,8 @@ int server_count_clients( struct server *params )
{
NULLCHECK( params );
int i, count = 0;
cleanup_client_threads( params->nbd_client, params->max_nbd_clients );
for ( i = 0 ; i < params->max_nbd_clients ; i++ ) {
if ( params->nbd_client[i].thread != 0 ) {