summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-03-16 23:08:33 +0100
committerMichael Adam <obnox@samba.org>2008-03-17 08:22:32 +0100
commit7c6de9b0bdc92968368134902ed893864855786f (patch)
tree11f09b337afbab8734c62ce940727aef76fdf4ff /source3/registry
parent62556cd6f0d6c5917b0381dfafa1927307fa4c1c (diff)
downloadsamba-7c6de9b0bdc92968368134902ed893864855786f.tar.gz
samba-7c6de9b0bdc92968368134902ed893864855786f.tar.bz2
samba-7c6de9b0bdc92968368134902ed893864855786f.zip
registry: rename tdb_refcount to regdb_refcount after change to dbwrap.
Michael (This used to be commit d39957e2c9216ef01b2ef53863c0ef5d3a9b5fee)
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_backend_db.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index ab437fb97b..169f8f16a7 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -25,7 +25,7 @@
#define DBGC_CLASS DBGC_REGISTRY
static struct db_context *regdb = NULL;
-static int tdb_refcount;
+static int regdb_refcount;
/* List the deepest path into the registry. All part components will be created.*/
@@ -259,8 +259,8 @@ bool regdb_init( void )
uint32 vers_id;
if ( regdb ) {
- DEBUG(10,("regdb_init: incrementing refcount (%d)\n", tdb_refcount));
- tdb_refcount++;
+ DEBUG(10,("regdb_init: incrementing refcount (%d)\n", regdb_refcount));
+ regdb_refcount++;
return true;
}
@@ -276,7 +276,7 @@ bool regdb_init( void )
DEBUG(10,("regdb_init: Successfully created registry tdb\n"));
}
- tdb_refcount = 1;
+ regdb_refcount = 1;
vers_id = dbwrap_fetch_int32(regdb, vstring);
@@ -305,8 +305,8 @@ WERROR regdb_open( void )
WERROR result = WERR_OK;
if ( regdb ) {
- DEBUG(10,("regdb_open: incrementing refcount (%d)\n", tdb_refcount));
- tdb_refcount++;
+ DEBUG(10,("regdb_open: incrementing refcount (%d)\n", regdb_refcount));
+ regdb_refcount++;
return WERR_OK;
}
@@ -321,8 +321,8 @@ WERROR regdb_open( void )
unbecome_root();
- tdb_refcount = 1;
- DEBUG(10,("regdb_open: refcount reset (%d)\n", tdb_refcount));
+ regdb_refcount = 1;
+ DEBUG(10,("regdb_open: refcount reset (%d)\n", regdb_refcount));
return result;
}
@@ -332,18 +332,18 @@ WERROR regdb_open( void )
int regdb_close( void )
{
- if (tdb_refcount == 0) {
+ if (regdb_refcount == 0) {
return 0;
}
- tdb_refcount--;
+ regdb_refcount--;
- DEBUG(10,("regdb_close: decrementing refcount (%d)\n", tdb_refcount));
+ DEBUG(10,("regdb_close: decrementing refcount (%d)\n", regdb_refcount));
- if ( tdb_refcount > 0 )
+ if ( regdb_refcount > 0 )
return 0;
- SMB_ASSERT( tdb_refcount >= 0 );
+ SMB_ASSERT( regdb_refcount >= 0 );
TALLOC_FREE(regdb);
return 0;