/* trans.c - bdb backend transaction routines */
/* $OpenLDAP$ */
+/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
+ *
+ * Copyright 2000-2006 The OpenLDAP Foundation.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted only as authorized by the OpenLDAP
+ * Public License.
+ *
+ * A copy of this license is available in the file LICENSE in the
+ * top-level directory of the distribution or, alternatively, at
+ * <http://www.OpenLDAP.org/license.html>.
+ */
#include "portable.h"
#include <ac/string.h>
#include "back-bdb.h"
-#include "external.h"
#include "lber_pvt.h"
#include "lutil.h"
delay = 16384 * (key * (double) pow_retries / (double) max_key);
delay = delay ? delay : 1;
-#ifdef NEW_LOGGING
- LDAP_LOG( OPERATION, ERR, "delay = %d, num_retries = %d\n", delay, num_retries, 0 );
-#else
Debug( LDAP_DEBUG_TRACE, "delay = %d, num_retries = %d\n", delay, num_retries, 0 );
-#endif
timeout.tv_sec = delay / 1000000;
timeout.tv_usec = delay % 1000000;