Hey Ian,<div><br></div><div>I found the problem, I was indexing objects by their ele::oid which is a number. When I index by string it works.</div><div><br></div><div>Cheers,</div><div>Edward Tate<br><br><div class="gmail_quote">
On Thu, Dec 17, 2009 at 2:08 PM, Ian Eslick <span dir="ltr"><<a href="mailto:eslick@media.mit.edu">eslick@media.mit.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Edward,<br>
<br>
I'm unable to reproduce with my local version of the latest Elephant (latest, ccl64, DB 4.7, Mac).  Can you give me a transcript like:<br>
<br>
(setf btree (make-btree))<br>
(setf (get-value 'foo btree) 10)<br>
(setf (get-value 'bar btree) 20)<br>
(dump-btree btree)<br>
(remove-kv 'foo btree)<br>
(dump-btree btree)<br>
<br>
It's possible that there is some low-level issue talking to the DB API in the FFI between Elephant and BDB.  I don't have time to test on SBCL today, but perhaps someone else does.  I might be able to get to it this weekend.<br>

<br>
Thanks,<br>
Ian<br>
<div><div></div><div class="h5"><br>
On Dec 17, 2009, at 4:30 AM, Edward Tate wrote:<br>
<br>
> Hey,<br>
><br>
> I'm using the latest elephant on SBCL 1.0.29 with BDB 4.7, and I'm getting strange behaviour.<br>
><br>
> * Using remove-kv doesn't actually delete keys from a btree.<br>
> * Using drop-btree doesn't actually drop the btree.<br>
> * Using flush-instance-cache doesn't seem to help.<br>
> * Doing a full GC doesn't seem to help.<br>
><br>
> Is there a way of removing data permanently?<br>
><br>
> Cheers,<br>
> Edward Tate<br>
</div></div>> _______________________________________________<br>
> elephant-devel site list<br>
> <a href="mailto:elephant-devel@common-lisp.net">elephant-devel@common-lisp.net</a><br>
> <a href="http://common-lisp.net/mailman/listinfo/elephant-devel" target="_blank">http://common-lisp.net/mailman/listinfo/elephant-devel</a><br>
<br>
<br>
_______________________________________________<br>
elephant-devel site list<br>
<a href="mailto:elephant-devel@common-lisp.net">elephant-devel@common-lisp.net</a><br>
<a href="http://common-lisp.net/mailman/listinfo/elephant-devel" target="_blank">http://common-lisp.net/mailman/listinfo/elephant-devel</a><br>
</blockquote></div><br></div>