[mw-devel] [Git][arthur/mw][master] Fix up create_folder_file
Andrew Price
welshbyte at sucs.org
Thu Jan 21 12:35:50 GMT 2016
On 21/01/16 10:04, Justin Mitchell wrote:
> On Wed, 2016-01-20 at 21:07 +0000, Andrew Price wrote:
>> Andrew Price pushed to branch master at Justin Mitchell / mw
>> Commits:
>> * ff58d063
>> by Andrew Price at 2016-01-20T21:02:50Z
>> Fix up create_folder_file
>>
>> Use ftruncate instead of writing malloced garbage entries to set the
>> file size of folders.bb, which dictates the (seemingly arbitrary) 64
>> folder limit. Also make it return on error instead of exiting.
>
> 64 folders ==>
>
> struct user -> int32_t folders[2]
> 64 bit flags of folder subscription.
>
> struct user -> int32_t lastread[64];
> 64 counts of the highest numbered article read in each folder
>
>
> so folder limit is fixed until users.bb gets moved to a more flexible
> storage method.
Ok, makes sense. Migrating to a new format (assuming sqlite) shouldn't
be too difficult but some thought will have to be put into the database
layout to support future features.
Andy
More information about the mw-devel
mailing list