+ rescue => e
+ debug "Failed: #{e}"
+ end
+ end
+
+ def DBTree.cleanup_env()
+ begin
+ debug "DBTree: checking transactions ..."
+ has_active_txn = @@env.txn_stat["st_nactive"] > 0
+ if has_active_txn
+ debug "DBTree: WARNING: not all transactions completed!"
+ end
+ DBTree.cleanup_logs