/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 2000-2014 The OpenLDAP Foundation.
+ * Copyright 2000-2018 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
}
/* begin transaction */
- rs->sr_err = TXN_BEGIN( bdb->bi_dbenv, NULL, <id,
- bdb->bi_db_opflags );
+ {
+ int tflags = bdb->bi_db_opflags;
+ if ( get_lazyCommit( op ))
+ tflags |= DB_TXN_NOSYNC;
+ rs->sr_err = TXN_BEGIN( bdb->bi_dbenv, NULL, <id, tflags );
+ }
rs->sr_text = NULL;
if( rs->sr_err != 0 ) {
Debug( LDAP_DEBUG_TRACE,