I've read section 4.13 in the doc, and it appears that it's possible to use two processes. However, when I launch two processes reading the same database, the first process trows errors (see trace below). <br><br>
Something is messing up the access/confing for the first process.<br><br>I was hoping I would not be running into this problem, since I am running two processes on purpose: one is running standard HTTP server, the other SSL for secure longins, etc. I'm using BDB as a means of communicating the user login state: the user logs in on SSL side, sets up a pass tokens in the cookie, redirects to HTTP, and there the server fetches authorisation code from DB using the token. <br>
<br>THis bug, then, stops me cold. Please help.<br><br>Yarek<br><br><br>Bad type argument:<br> BDB-DB-ERROR<br> [Condition of type SIMPLE-TYPE-ERROR]<br><br>Restarts:<br> 0: [RETRY] Retry SLIME REPL evaluation request.<br>
1: [ABORT] Return to SLIME's top level.<br> 2: [TERMINATE-THREAD] Terminate this thread (#<THREAD "repl-thread" RUNNING {1002CAA181}>)<br><br>Backtrace:<br> 0: (MAKE-CONDITION BDB-DB-ERROR)[:EXTERNAL]<br>
1: (ERROR BDB-DB-ERROR)[:EXTERNAL]<br> 2: ((SB-PCL::FAST-METHOD ELEPHANT::EXECUTE-TRANSACTION (DB-BDB::BDB-STORE-CONTROLLER T)) ..)[:EXTERNAL]<br> 3: (ELEPHANT::MAP-BTREE-VALUES #<unavailable lambda list>)<br> 4: (ELEPHANT::GET-DB-SCHEMAS #<BDB-STORE-CONTROLLER /home/yarek/lisp/projects/fashion-origami/data/> PRODUCT-SET)<br>
5: (SB-INT:SIMPLE-EVAL-IN-LEXENV (ELEPHANT::GET-DB-SCHEMAS (WEBLOCKS-ELEPHANT::ELEPHANT-CONTROLLER *FASHION-ORIGAMI-ELEPHANT-STORE*) 'PRODUCT-SET) #<NULL-LEXENV>)<br> 6: (SWANK::EVAL-REGION "(elephant::get-db-schemas (weblocks-elephant::elephant-controller *fashion-origami-elephant-store*) 'product-set)\n")<br>
<br><div class="gmail_quote">On Thu, Dec 11, 2008 at 2:36 PM, Yarek Kowalik <span dir="ltr"><<a href="mailto:yarek.kowalik@gmail.com">yarek.kowalik@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm guessing it is not... as that's what's causing some of my data problems.... I thought BDBs can handle multi-process access.<br><font color="#888888"><br>Yarek</font><div><div></div><div class="Wj3C7c"><br>
<br><div class="gmail_quote">On Thu, Dec 11, 2008 at 2:23 PM, Yarek Kowalik <span dir="ltr"><<a href="mailto:yarek.kowalik@gmail.com" target="_blank">yarek.kowalik@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I'm trying to access BDB 4.5 backed elephant store (elephant-unstable) from two different lisp processes using the elephant package. Is this a safe thing to do?<br>
<font color="#888888"><br>Yarek<br>
</font></blockquote></div><br>
</div></div></blockquote></div><br>