_setupDB(): Port to BerkeleyDB 4.1, and pybsddb 4.1 (experimental):
# DB 4.1.24 requires that operations happening in a transaction must # be performed on a database that was opened in a transaction. Since # we do the former, we must do the latter. However, earlier DB # versions don't transactionally protect database open, so this is the # most portable way to write the code. i.e. we use the DB_AUTO_COMMIT flag for the open, if it's defined.
Showing
Please register or sign in to comment