Closed Bug 617486 Opened 14 years ago Closed 13 years ago

Quota handling adds tab length to the wrong array element

Categories

(Cloud Services Graveyard :: Server: Sync, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: telliott, Assigned: telliott)

References

Details

Attachments

(1 file, 1 obsolete file)

$this->_quota[1] += strlen($tab[1]);

should be

$this->_quota[0] += strlen($tab[1]);

The main visible impact of this is that tabs will not count towards displayed quota. Given their size, that shouldn't matter. In the long run, once we actually enable quota control, this will also mess with how often we refresh the quota from the db.

As I'm working on stringifying those anyway, I think it would be easiest just to store the quota as [size]:[date] rather than as an array, so the fix will just get folded into that change.
Assignee: nobody → telliott
Depends on: 617456
decided against stringification, since tarek may want to just use a universal layer for extracting these, and having one be different will just cause problems.
Attachment #496544 - Flags: review?(mconnor)
Attachment #496544 - Attachment is obsolete: true
Attachment #496546 - Flags: review?(mconnor)
Attachment #496544 - Flags: review?(mconnor)
Comment on attachment 496546 [details] [diff] [review]
adds tab length to the right quota field

We need tests for this.
Attachment #496546 - Flags: review?(mconnor) → review+
Assignee: telliott → tarek
Not sure what's the status of this (I don't see it applied) Assigning to Toby

nb: we don't worry anymore about php/python memcached exchanges
Assignee: tarek → telliott
Fixed and pushed back in December
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: Cloud Services → Cloud Services Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: