Thread (47 messages) flat view 47 messages, 3 authors, 2016-06-15

Re: [PATCH v5 25/27] refs: add LMDB refs storage backend

From: Duy Nguyen <hidden>
Date: 2016-06-15 23:08:20

On Fri, Feb 19, 2016 at 3:23 AM, David Turner [off-list ref] wrote:
On Thu, 2016-02-18 at 15:50 +0700, Duy Nguyen wrote:

[snip]

Thanks; applied the above
quoted
This permission makes me wonder if we need adjust_shared_perm() here
and some other places.
So just add this after every mkdir?

        if (shared_repository)
                adjust_shared_perm(db_path);
Another option is avoid mkdir entirely. Getting started page [1] says
if you do mdb_open_env(.., "refs.lmdb", MDB_NOSUBDIR,..) then it will
create two files refs.lmdb and refs.lmdb.lock. No need for the
directory "refs.lmdb" just to contain two files.

[1] http://symas.com/mdb/doc/starting.html
-- 
Duy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help