What is the version of the following sentence with correct punctuation?

When all the files in the filegroup are full the database engine automatically expands one file at a time in a roundrobin manner to allow for more data
When all the files in the filegroup are full, the database engine automatically expands one file at a time in a round-robin manner to allow for more data.