ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Sergey Y. Afonin" <asy@altlinux.ru>
To: devel@lists.altlinux.org
Subject: Re: [devel] вопрос про BDB и блокировки.
Date: Fri, 27 Apr 2007 15:38:52 +0500
Message-ID: <200704271538.52277.asy@altlinux.ru> (raw)
In-Reply-To: <20070427102034.GB11839@solemn.turbinal>

On Friday 27 April 2007, Alexey Tourbin wrote:

> DB_INIT_CDB дает "прозрачный" локинг для каждой операции. 
> То есто операция начинается берётся блокировка.  Операция заканчивает
> блокировка снимается.
> 
> DB_INIT_LOCK по идее специально указывать не надо, если указано
> DB_INIT_CDB|DB_INIT_MPOOL.
> 
> Там есть ещё другой режим вместо локинга, он log может писать.

Но этот другой режим - тоже режим блокировок ? Хочется понять, почему
сейчас работает, когда нет явного указания на использование блокировок. 
Обязательно уже должно было несколько процессов к одной базе сунуться 
и не раз. Ан нет, пашет... 

> Вот кусок перлового кода.  Тут есть две тонкости: открывать env надо
> через exclusive lock, иначе там глюкало.  Я это делаю через flock на
> дескрипторе каталога (круто!).

Если каталог "свой", почему бы и нет. :-)

-- 
С уважением, Сергей Афонин
asy@altlinux.ru


  reply	other threads:[~2007-04-27 10:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-27 10:05 Sergey Y. Afonin
2007-04-27 10:20 ` Alexey Tourbin
2007-04-27 10:38   ` Sergey Y. Afonin [this message]
2007-04-27 11:02     ` Alexey Tourbin
2007-04-27 12:00       ` Sergey Y. Afonin
2007-04-27 12:07         ` Sergey Y. Afonin
2007-04-27 11:19     ` Alexey Tourbin
2007-04-27 11:40       ` Sergey Y. Afonin
2007-04-27 10:24 ` Sergey Y. Afonin

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=200704271538.52277.asy@altlinux.ru \
    --to=asy@altlinux.ru \
    --cc=devel@lists.altlinux.org \
    /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

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git