]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/lock.c
Experiment with busy loop protection...
[openldap] / servers / slapd / lock.c
index 2b006232ea94efb0cfcb6bbae7cf98a94230f65f..856c6c7fb418f9f0ed0aa446112f148073e35f46 100644 (file)
@@ -31,8 +31,8 @@ lock_fopen( const char *fname, const char *type, FILE **lfp )
        strcat( buf, ".lock" );
        if ( (*lfp = fopen( buf, "w" )) == NULL ) {
 #ifdef NEW_LOGGING
-            LDAP_LOG(( "operation", LDAP_LEVEL_ERR,
-                       "lock_fopen: could not open lock file \"%s\".\n", buf ));
+               LDAP_LOG(( "operation", LDAP_LEVEL_ERR,
+                          "lock_fopen: could not open lock file \"%s\".\n", buf ));
 #else
                Debug( LDAP_DEBUG_ANY, "could not open \"%s\"\n", buf, 0, 0 );
 #endif
@@ -46,8 +46,8 @@ lock_fopen( const char *fname, const char *type, FILE **lfp )
        /* open the log file */
        if ( (fp = fopen( fname, type )) == NULL ) {
 #ifdef NEW_LOGGING
-            LDAP_LOG(( "operation", LDAP_LEVEL_ERR,
-                       "lock_fopen: could not open log file \"%s\".\n", buf ));
+               LDAP_LOG(( "operation", LDAP_LEVEL_ERR,
+                          "lock_fopen: could not open log file \"%s\".\n", buf ));
 #else
                Debug( LDAP_DEBUG_ANY, "could not open \"%s\"\n", fname, 0, 0 );
 #endif