relstorage: shared-blob-dir option clarification docs vs src

Alan Runyan <[email protected]>
Newsgroups gmane.comp.web.zope.zodb
Message-ID <CAHPEaF5JAKfNKyP6wDo+BHhidcoSg87WEo8wJhKSZKL1hHmt+g@mail.gmail.com>
Hi.

I was under the impression that if shared-blob-dir is false that blob-dir
must be unique across clients.
In fact the docs say this:

shared-blob-dir

If true (the default), the blob directory is assumed to be shared among all
clients using NFS or similar; blob data will be stored only on the
filesystem and not in the database. If false, blob data is stored in the
relational database and the blob directory holds a cache of blobs.

When this option is false, the blob directory should not be shared among
clients.

But then I was wondering, "huh, thats odd, why?  zc.lockfile is used" and I
looked at the source and found this:

https://github.com/zodb/relstorage/blob/master/relstorage/blobhelper.py#L123
        # OK, it's not here and we (or someone) needs to get it.  We
        # want to avoid getting it multiple times.  We want to avoid
        # getting it multiple times even accross separate client
        # processes on the same machine. We'll use file locking.


So I wanted to ask the list for clarification:

Can clients safely share a `blob-dir` path if `shared-blob-dir` is false?

thanks
alan

-- 
You received this message because you are subscribed to the Google Groups "zodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.