bdb: don't retrieve the db values when warning about nil key
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 10 May 2011 06:19:13 +0000 (08:19 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 10 May 2011 06:19:13 +0000 (08:19 +0200)
commitf52f485ae68a62cd6183224ba535c88a35928768
treea12b4058b3bad49852f493e891a3fd73e14dc736
parent29f36f867923faccc8e99863e059ee4a36b279b3
bdb: don't retrieve the db values when warning about nil key

When either of the keys passed to the BDB compare function is nil, we
emit a warning. In this warning, however, we used to peek at the
registry value, which required the use of the comparison function
itself, falling in a nested loop. Solve by omitting the
self[<key>].inspect from the warning.
lib/rbot/registry/bdb.rb