[elephant-devel] Berkeley DB 4.4.20 Patch

Ian Eslick eslick at csail.mit.edu
Sun Sep 3 05:29:07 UTC 2006


Way to go!  Did you test against the current HEAD or the 0.6.0 release
branch?  All tests passed on 0.6.0 so if you are working from that
release you should be worried, but it's possible that not all tests pass
the current HEAD.  Also, did they pass before and after your fix?

In any event, I presume this change to the lisp code will not be
backward compatible to work with the 4.3 libraries? 

I'll see about rolling this change into HEAD tomorrow.  HEAD is slowly
moving towards an 0.6.1 release One of the nice advantages of 4.4 over
4.3 is that the system can compact btree storage without having to do a
dump and reload.

There are a couple of other small projects to tackle for 0.6.1 if you'd
like to get more familiar with the system!  I've been making some
strides towards better thread safety this week.  I hope to check in
those changes shortly.

Cheers,
Ian

Vladimir Sedach wrote:
> Hi everybody,
>
> Unless the BDB people are lying in their Changelog, the only thing
> that changed between 4.3 and 4.4 as far as Elephant should be
> concerned are the constants in db.h. Diff information provided below.
> I don't use Elephant for anything right now (but I am planning to in
> the future, and what better way to get familiar than fixing things
> like this?), so the test suite is the only thing I have to go by. For
> both BDB 4.3 and 4.4, do-backend-tests passes everything but PCURSOR2
> and INDEXING-REDEF-CLASS. Should I be worried?
>
> Vladimir
>
> cd /home/viper/programming/CL/elephant-work/src/db-bdb/
> diff -c /home/viper/programming/CL/elephant/src/db-bdb/sleepycat.lisp
> /home/viper/programming/CL/elephant-work/src/db-bdb/sleepycat.lisp
> *** /home/viper/programming/CL/elephant/src/db-bdb/sleepycat.lisp   
> 2006-04-29
> 19:03:49.000000000 -0600
> ---
> /home/viper/programming/CL/elephant-work/src/db-bdb/sleepycat.lisp   
> 2006-09-02
> 22:05:23.000000000 -0600
> ***************
> *** 119,151 ****
>  (defconstant DB-UNKNOWN               5)
>
>  (defconstant DB_AUTO_COMMIT   #x1000000)
> ! (defconstant DB_JOINENV          #x0040000)
> ! (defconstant DB_INIT_CDB      #x0001000)
> ! (defconstant DB_INIT_LOCK     #x0002000)
> ! (defconstant DB_INIT_LOG      #x0004000)
> ! (defconstant DB_INIT_MPOOL    #x0008000)
> ! (defconstant DB_INIT_REP      #x0010000)
> ! (defconstant DB_INIT_TXN      #x0020000)
>  (defconstant DB_RECOVER          #x0000020)
>  (defconstant DB_RECOVER_FATAL #x0200000)
>  (defconstant DB_LOCKDOWN      #x0080000)
>  (defconstant DB_PRIVATE          #x0100000)
> ! (defconstant DB_SYSTEM_MEM    #x0400000)
>  (defconstant DB_THREAD          #x0000040)
>  (defconstant DB_FORCE          #x0000004)
> ! (defconstant DB_DEGREE_2      #x2000000)
>  (defconstant DB_DIRTY_READ    #x4000000)
>  (defconstant DB_CREATE          #x0000001)
> ! (defconstant DB_EXCL          #x0001000)
>  (defconstant DB_NOMMAP          #x0000008)
>  (defconstant DB_RDONLY          #x0000010)
>  (defconstant DB_TRUNCATE      #x0000080)
>  (defconstant DB_TXN_NOSYNC    #x0000100)
> ! (defconstant DB_TXN_NOWAIT    #x0001000)
> ! (defconstant DB_TXN_SYNC      #x0002000)
>  (defconstant DB_LOCK_NOWAIT   #x002)
> ! (defconstant DB_DUP          #x0000002)
> ! (defconstant DB_DUPSORT          #x0000004)
>
>  (defconstant DB_CURRENT              7)
>  (defconstant DB_FIRST              9)
> --- 119,152 ----
>  (defconstant DB-UNKNOWN               5)
>
>  (defconstant DB_AUTO_COMMIT   #x1000000)
> ! (defconstant DB_JOINENV          #x0000000)
> ! (defconstant DB_INIT_CDB      #x0002000)
> ! (defconstant DB_INIT_LOCK     #x0004000)
> ! (defconstant DB_INIT_LOG      #x0008000)
> ! (defconstant DB_INIT_MPOOL    #x0010000)
> ! (defconstant DB_INIT_REP      #x0020000)
> ! (defconstant DB_INIT_TXN      #x0040000)
>  (defconstant DB_RECOVER          #x0000020)
>  (defconstant DB_RECOVER_FATAL #x0200000)
>  (defconstant DB_LOCKDOWN      #x0080000)
>  (defconstant DB_PRIVATE          #x0100000)
> ! (defconstant DB_SYSTEM_MEM    #x0800000)
>  (defconstant DB_THREAD          #x0000040)
>  (defconstant DB_FORCE          #x0000004)
> ! (defconstant DB_DEGREE_2      #x2000000) ;; DEPRECATED, now called
> DB_READ_COMMITTED
> ! (defconstant DB_READ_COMMITTED #x2000000)
>  (defconstant DB_DIRTY_READ    #x4000000)
>  (defconstant DB_CREATE          #x0000001)
> ! (defconstant DB_EXCL          #x0002000)
>  (defconstant DB_NOMMAP          #x0000008)
>  (defconstant DB_RDONLY          #x0000010)
>  (defconstant DB_TRUNCATE      #x0000080)
>  (defconstant DB_TXN_NOSYNC    #x0000100)
> ! (defconstant DB_TXN_NOWAIT    #x0002000)
> ! (defconstant DB_TXN_SYNC      #x0004000)
>  (defconstant DB_LOCK_NOWAIT   #x002)
> ! (defconstant DB_DUP          #x0004000)
> ! (defconstant DB_DUPSORT          #x0008000)
>
>  (defconstant DB_CURRENT              7)
>  (defconstant DB_FIRST              9)
>
> Diff finished at Sat Sep  2 22:26:08
> _______________________________________________
> elephant-devel site list
> elephant-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/elephant-devel



More information about the elephant-devel mailing list