1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3:registry: improve debug messages about regdb refcount changes

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue Dec  7 15:18:03 CET 2010 on sn-devel-104
This commit is contained in:
Michael Adam 2010-10-22 12:16:20 +02:00
parent af4a4f58b5
commit d91189727a

View File

@ -497,8 +497,8 @@ WERROR regdb_init(void)
WERROR werr;
if (regdb) {
DEBUG(10, ("regdb_init: incrementing refcount (%d)\n",
regdb_refcount));
DEBUG(10, ("regdb_init: incrementing refcount (%d->%d)\n",
regdb_refcount, regdb_refcount+1));
regdb_refcount++;
return WERR_OK;
}
@ -519,6 +519,8 @@ WERROR regdb_init(void)
}
regdb_refcount = 1;
DEBUG(10, ("regdb_init: registry db openend. refcount reset (%d)\n",
regdb_refcount));
expected_version = REGVER_V2;
@ -574,7 +576,8 @@ WERROR regdb_open( void )
WERROR result = WERR_OK;
if ( regdb ) {
DEBUG(10,("regdb_open: incrementing refcount (%d)\n", regdb_refcount));
DEBUG(10, ("regdb_open: incrementing refcount (%d->%d)\n",
regdb_refcount, regdb_refcount+1));
regdb_refcount++;
return WERR_OK;
}
@ -592,7 +595,8 @@ WERROR regdb_open( void )
unbecome_root();
regdb_refcount = 1;
DEBUG(10,("regdb_open: refcount reset (%d)\n", regdb_refcount));
DEBUG(10, ("regdb_open: registry db opened. refcount reset (%d)\n",
regdb_refcount));
return result;
}
@ -608,7 +612,8 @@ int regdb_close( void )
regdb_refcount--;
DEBUG(10,("regdb_close: decrementing refcount (%d)\n", regdb_refcount));
DEBUG(10, ("regdb_close: decrementing refcount (%d->%d)\n",
regdb_refcount+1, regdb_refcount));
if ( regdb_refcount > 0 )
return 0;