[rucksack-devel] Too many seperate transactions mess up rucksack

Arthur Lemmens alemmens at xs4all.nl
Tue Jun 24 20:31:57 UTC 2008


John Janecek wrote:

> (defun make-test-data ()
>   (dotimes (i 100)
>     (print i)
>     (with-rucksack (rs *rs-dir*)
>     (with-transaction ()
>           (make-instance 'account :username (random 1000000) :password
> (random 1919191))
>             ))
>     ))
>
> (defun make-test-data1 ()
>   (with-rucksack (rs *rs-dir*)
>     (with-transaction ()
>       (dotimes (i 100)
>     (print i)
>     (make-instance 'account :username (random 1000000) :password (random
> 1919191))
>             ))))
>
> if i do (make-test-data) not all the accounts will end up in the rucksack
> (sometimes if first time yes) but second time i run no

How do you know that not all accounts end up in the rucksack?
Could you show the code that you use for determining this?  Or
do you somehow inspect this manually?

Arthur



More information about the rucksack-devel mailing list