Gentoo Archives: gentoo-dev

From: Gold is Heavy <aeoo@×××××××.org>
To: gentoo-dev@××××××××××.org
Subject: [gentoo-dev] [db 3.3.11 fix] Fwd: Re: bugs 4562, 4546 ETA?? [#4562] [#4546]
Date: Sat, 20 Oct 2001 02:22:35
Message-Id: auto-000009517761@front2.mail.megapathdsl.net
1 One of PyUnit tests for the new pybsddb 3.3.0 (pybsddb.sf.net) failed. It
2 was filed as bug:
3
4 http://sourceforge.net/tracker/?func=detail&atid=113900&aid=454051&group_id=13900
5
6 The bug was fixed long time ago, but miraculously someone forgot to share the
7 patch?! Anyway, here is the patch. Please note, the patch does NOT apply
8 cleanly due to slight formatting differences. The patch is correct though.
9 I have applied it by hand and all PyUnit tests pass.
10
11 Have fun!
12
13 --Leo
14
15 ---------- Forwarded Message ----------
16
17 Subject: Re: bugs 4562, 4546 ETA?? [#4562] [#4546]
18 Date: Fri, 19 Oct 2001 19:27:17 -0700
19 From: Sleepycat Software Support <support@×××××××××.com>
20 To: Gold is Heavy <aeoo@×××××××.org>
21
22 On Fri, Oct 19, 2001 at 09:55:39PM -0400, Gold is Heavy wrote:
23 > Hi Gang,
24 >
25 > It would be very nice if you made public your progress on a bug that's
26 > tripped up by pybsddb Python module's unit tests.
27 >
28 > This bug is documented at:
29 > http://sourceforge.net/tracker/?func=detail&atid=113900&aid=454051&group_id
30 >=13900
31 >
32 > Can you please give me an ETA on this bug?
33 >
34 > Thanks,
35 > --Leo
36
37 Hi Leo,
38
39 We gave Robin Dunn a patch in September and from the bug report
40 on Sourceforge you reference it appears that he checked it in.
41
42 Here is it again, in case you need it:
43
44 *** hash_page.c Fri Jul 6 16:53:31 2001
45 --- hash_page.new Tue Sep 11 14:00:43 2001
46 ***************
47 *** 1609,1615 ****
48 {
49 HASH_CURSOR *hcp;
50 db_pgno_t pgno;
51 - u_int32_t flags;
52 int gotmeta, ret;
53
54 hcp = (HASH_CURSOR *)dbc->internal;
55 --- 1609,1614 ----
56 ***************
57 *** 1622,1632 ****
58 if ((ret = __ham_release_meta(dbc)) != 0)
59 return (ret);
60
61 ! flags = 0;
62 ! if (DB_NONBLOCK(dbc))
63 ! LF_SET(DB_LOCK_NOWAIT);
64 !
65 ! ret = __db_lget(dbc, flags, pgno, mode, 0, &hcp->lock);
66
67 hcp->lock_mode = mode;
68 return (ret);
69 --- 1621,1627 ----
70 if ((ret = __ham_release_meta(dbc)) != 0)
71 return (ret);
72
73 ! ret = __db_lget(dbc, 0, pgno, mode, 0, &hcp->lock);
74
75 hcp->lock_mode = mode;
76 return (ret);
77
78
79 Regards,
80 Carol Sandstrom
81 Sleepycat Software Support
82
83 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
84 Sleepycat Software Inc. carol@×××××××××.com
85 http://www.sleepycat.com
86
87 -------------------------------------------------------