From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: tech@mdocml.bsd.lv
Subject: Re: mandocdb tools, sqlite3, and ohash
Date: Fri, 8 Jun 2012 16:13:39 +0200 [thread overview]
Message-ID: <20120608141339.GB21205@britannica.bec.de> (raw)
In-Reply-To: <4FD20047.1040108@bsd.lv>
On Fri, Jun 08, 2012 at 03:38:15PM +0200, Kristaps Dzonsons wrote:
> On 06/08/12 14:25, Joerg Sonnenberger wrote:
> >On Fri, Jun 08, 2012 at 12:29:26PM +0200, Kristaps Dzonsons wrote:
> >>> 4. Function dbopen with real=0:
> >>> There seems to be a race, open to symlink attacks,
> >>> between remove(file) and sqlite3_open(file);
> >>> some kind of O_EXCL or something might be required.
> >>
> >>Fixed---good point. Pity there's no O_TRUNC for sqlite3.
> >
> >SQLITE_OPEN_EXCLUSIVE.
>
> Yep, that's already in there. I'm going to research the COMMIT
> blocks more: I don't want to "tune" the database much because I
> worry about hitting memory barriers in having both the word
> hashtable and a lot of database commits floating around in memory.
> If you've any ideas, don't hesitate to share!
Don't, it will flush pages to disk as soon as hits the cache size limit.
Joerg
--
To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv
next prev parent reply other threads:[~2012-06-08 14:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-07 15:15 Kristaps Dzonsons
2012-06-07 16:29 ` Joerg Sonnenberger
2012-06-07 18:06 ` Ingo Schwarze
2012-06-08 10:29 ` Kristaps Dzonsons
2012-06-08 12:25 ` Joerg Sonnenberger
2012-06-08 13:38 ` Kristaps Dzonsons
2012-06-08 14:13 ` Joerg Sonnenberger [this message]
[not found] ` <20120607165106.GA8819@lain.home>
2012-06-08 12:05 ` Kristaps Dzonsons
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120608141339.GB21205@britannica.bec.de \
--to=joerg@britannica.bec.de \
--cc=tech@mdocml.bsd.lv \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).