From: Dmitry Lebkov <dima@sakhalin.ru> To: ALT Devel discussion list <devel@lists.altlinux.org> Subject: Re: [devel] Q: libdb-4.4.so users Date: Fri, 28 Nov 2008 14:58:29 +1000 Message-ID: <492F7A75.2090008@sakhalin.ru> (raw) In-Reply-To: <20081127234130.GB1852@wo.int.altlinux.org> [-- Attachment #1: Type: text/plain, Size: 714 bytes --] Dmitry V. Levin пишет: > Hi, > > Просьба к немногочисленным (5 пакетов) оставшимся пользователям > libdb-4.4.so прокомментировать перспективы перехода на libdb-4.7.so > openldap-2.3.43-alt1.src.rpm На данный момент для ветки 2.3 перспектив перехода на BDB-4.7 нет. В ближайшее время постараюсь заняться переходом на openldap-2.4. По-крайней мере openldap-2.4.13 нормально собрался с libdb-4.7 и успешно "отстоял" собственные внутренние тесты. Встречный вопрос: присоединенный к сообщению патч можно приложить к нынешней libdb-4.7? README из openldap-2.4.13.tgz заявляет следующее: ... In addition, for BDB 4.7, it is advised to also use the supplied build/db.4.7.25.patch. ... -- WBR, Dmitry Lebkov [-- Attachment #2: db.4.7.25.patch --] [-- Type: text/x-patch, Size: 1298 bytes --] --- db-4.7.25/lock/lock.c.orig 2008-05-07 05:27:35.000000000 -0700 +++ db-4.7.25/lock/lock.c 2008-09-26 11:07:15.000000000 -0700 @@ -1274,10 +1274,12 @@ SH_TAILQ_REMOVE( <->obj_tab[obj_ndx], sh_obj, links, __db_lockobj); if (sh_obj->lockobj.size > sizeof(sh_obj->objdata)) { - LOCK_REGION_LOCK(env); + if (region->part_t_size != 1) + LOCK_REGION_LOCK(env); __env_alloc_free(<->reginfo, SH_DBT_PTR(&sh_obj->lockobj)); - LOCK_REGION_UNLOCK(env); + if (region->part_t_size != 1) + LOCK_REGION_UNLOCK(env); } SH_TAILQ_INSERT_HEAD( &FREE_OBJS(lt, part_id), sh_obj, links, __db_lockobj); @@ -1467,15 +1469,21 @@ if (obj->size <= sizeof(sh_obj->objdata)) p = sh_obj->objdata; else { - LOCK_REGION_LOCK(env); + /* + * If we have only one partition, the region is locked. + */ + if (region->part_t_size != 1) + LOCK_REGION_LOCK(env); if ((ret = __env_alloc(<->reginfo, obj->size, &p)) != 0) { __db_errx(env, "No space for lock object storage"); - LOCK_REGION_UNLOCK(env); + if (region->part_t_size != 1) + LOCK_REGION_UNLOCK(env); goto err; } - LOCK_REGION_UNLOCK(env); + if (region->part_t_size != 1) + LOCK_REGION_UNLOCK(env); } memcpy(p, obj->data, obj->size);
next prev parent reply other threads:[~2008-11-28 4:58 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-11-27 23:41 Dmitry V. Levin 2008-11-28 4:58 ` Dmitry Lebkov [this message] 2008-11-28 10:15 ` Dmitry V. Levin 2008-11-28 13:44 ` Dmitry Lebkov 2008-11-29 21:50 ` Dmitry V. Levin 2008-12-11 15:30 ` [devel] Q: openldap Dmitry V. Levin 2008-12-11 15:50 ` Eugene Ostapets 2008-12-11 23:48 ` Dmitry Lebkov 2009-05-21 15:37 ` Dmitry V. Levin 2009-05-21 15:49 ` Eugene Ostapets 2008-12-11 17:00 ` Dmitry V. Levin 2008-12-11 17:39 ` Eugene Ostapets 2008-11-29 22:01 ` [devel] Q: libdb-4.4.so users Dmitry V. Levin 2008-11-29 23:00 ` Ilya
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=492F7A75.2090008@sakhalin.ru \ --to=dima@sakhalin.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