[Authentication] Problem with race on create collection

Stef Walter stefw at gnome.org
Mon Sep 20 18:03:34 PDT 2010


On 2010-09-18 10:57, Michael Leupold wrote:
> How about merging the two, making it possible to add an Alias argument
> to CreateCollection? During CreateCollection it would work the same as
> the Name property you described, when done with creation it creates a
> new alias and sets it to point to the new collection. Additional
> benefits:
> - No need for a new property, no need to store it
> - No need to decide what to do if two files containing collections
> with the same Name property are found
> 
> I wouldn't necessarily mix Alias into the properties argument but
> create an extra string argument which would be left empty if no alias
> should be created.

Interesting idea.

So the daemon would refuse to create another collection when
CreateCollection is called with an alias argument that already exists?
Or would it just return the previous collection? Or did you have
something else in mind?

Cheers,

Stef


More information about the Authentication mailing list