[elephant-devel] a bug when not use elephant:*store-controller* when close-store

Xu Jingtao jingtaozf at gmail.com
Wed Jul 14 12:40:01 UTC 2010


hi elephant-devel:
when there are no store-controller and i don't use 
elephant:*store-controller* as default controller like this:
==================================================
;;start store
(unless *license-store*
    (setq *license-store* (open-store `(:BDB ,*license-store-dir*))))
;;close store
(close-store *license-store*)    
(setf *license-store* nil)
==================================================
This works fine when i first open it,but when i close it and re-open it,
the store is not working.
i have to add following codes when close store
==================================================
(when (eq elephant:*store-controller* *license-store*)
    (setf elephant:*store-controller* nil))
==================================================
obvioursly function close-store has a bug that not assign 
elephant:*store-controller* to nil when it should re-setf it.

best regards.
      jingtao.
    
    




More information about the elephant-devel mailing list