Home  |  Linux  | Mysql  | PHP  | XML
From:Malte S. Stretz Date:Wed Jan  3 08:28:08 2007
Subject:Re: [PATCH] Advanced tagging and filtering
On Wednesday 03 January 2007 13:02 CET Justin Mason wrote:
> hi Malte!
>
> Thanks for this, it looks very useful indeed.  One tweak, though:
> > b)  Makes the TAG part of the filename configurable.  Ah, yeah, TAG was
> > called HASH before :)  I added the parameters tag (static tag), tag_sub
> > (callback to generate a dynamic tag) and two more (tag_max_length and
> > tag_warn, cf. inline doc).
>
> I would prefer to *add* the TAG part *as well as* the HASH stuff.
> The hash is useful, since it avoids collisions -- TAG doesn't make
> that guarantee (nor should it have to).
>
> That should be OK, right?

Yeah, that was my original plan.  But I wanted to keep the filename format 
backwards compatible.  Not sure if thats really needed, I also wasn't sure 
if I should add the tag in the front, the end or in between.  In the end I 
went for compatibility and assumed that in most cases the tags will still 
be quite unique -- at least in the producer/consumer case where you've got 
most probably some kind of pid in there they will be at least as unique as 
the current hostname/pid based ones.  And if not, we've got the timestamp 
plus the additional really random part at the end :)

Actually, when people start to filter the files based on their name, the 
format must not change anymore in future.  Maybe the filter should apply to 
the tag only...

Cheers,
Malte
Navigate in group perl.ipc.dirqueue at sever nntp.perl.org
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants