mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
libafs: Remove support for length optimisation
At one point afs_StoreAllSegments had an optimisation to speed up stores. However, that optimistation used the chunkLength without taking appropriate locks, and was disabled. The variable assignments which still exist from this code cause errors with gcc 4.6.0, so just remove them. Change-Id: I86547d94280d7f07214fbf6ef5b3db61c9781e59 Reviewed-on: http://gerrit.openafs.org/4991 Tested-by: Derrick Brashear <shadow@dementia.org> Reviewed-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
6a03341df6
commit
cd8ebb14e5
@ -169,7 +169,6 @@ afs_StoreAllSegments(struct vcache *avc, struct vrequest *areq,
|
||||
afs_hyper_t newDV, oldDV; /* DV when we start, and finish, respectively */
|
||||
struct dcache **dcList;
|
||||
unsigned int i, j, minj, moredata, high, off;
|
||||
afs_size_t tlen;
|
||||
afs_size_t maxStoredLength; /* highest offset we've written to server. */
|
||||
int safety, marineronce = 0;
|
||||
|
||||
@ -238,7 +237,6 @@ afs_StoreAllSegments(struct vcache *avc, struct vrequest *areq,
|
||||
origCBs = afs_allCBs;
|
||||
|
||||
maxStoredLength = 0;
|
||||
tlen = avc->f.m.Length;
|
||||
minj = 0;
|
||||
|
||||
do {
|
||||
|
Loading…
Reference in New Issue
Block a user