]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Compute the maximal chunk size only once.
authorAndre Noll <maan@systemlinux.org>
Sat, 7 Aug 2010 15:46:44 +0000 (17:46 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 31 Oct 2010 11:06:57 +0000 (12:06 +0100)
This patch adds the new field max_chunk_size to struct audio_file_data.
It is initialized in the afs process when the chunk table is saved,
just before the audio_file_data struct is passed to the server process.

The vss code benefits from this change since it can just use the
new information rather than calling afh_get_largest_chunk_size()
to recompute the maximal chunk size from scratch whenever a new
client connects.

Since vss.c was the only user of afh_get_largest_chunk_size(), we
may kill this function.


No differences found