summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-06-08 20:26:46 +0000
committerJeremy Allison <jra@samba.org>2001-06-08 20:26:46 +0000
commita72b7148226e7d838d174d5309bdb7fbd43a5cbd (patch)
treece9fc948d61781cf3b7ea9e2332298309cd44d3c /source3
parent96686f8f55e5d9ef16ad522e9d0af7ed2f42c3c9 (diff)
downloadsamba-a72b7148226e7d838d174d5309bdb7fbd43a5cbd.tar.gz
samba-a72b7148226e7d838d174d5309bdb7fbd43a5cbd.tar.bz2
samba-a72b7148226e7d838d174d5309bdb7fbd43a5cbd.zip
Log tdb failures.
Jeremy. (This used to be commit f004471aac3a1a0f2e40c05d1aadfe68456bc103)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/connection.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/smbd/connection.c b/source3/smbd/connection.c
index d3124e8d0c..796a54e77d 100644
--- a/source3/smbd/connection.c
+++ b/source3/smbd/connection.c
@@ -58,7 +58,10 @@ BOOL yield_connection(connection_struct *conn,char *name,int max_connections)
kbuf.dptr = (char *)&key;
kbuf.dsize = sizeof(key);
- tdb_delete(tdb, kbuf);
+ if (tdb_delete(tdb, kbuf) != 0) {
+ DEBUG(0,("yield_connection: tdb_delete failed with error %s.\n", tdb_errorstr(tdb) ));
+ return (False);
+ }
return(True);
}
@@ -92,7 +95,8 @@ static int count_fn( TDB_CONTEXT *the_tdb, TDB_DATA kbuf, TDB_DATA dbuf, void *u
if (cs->Clear && !process_exists(crec.pid) && (errno == ESRCH)) {
DEBUG(2,("pid %u doesn't exist - deleting connections %d [%s]\n",
(unsigned int)crec.pid, crec.cnum, crec.name));
- tdb_delete(the_tdb, kbuf);
+ if (tdb_delete(the_tdb, kbuf) != 0)
+ DEBUG(0,("count_fn: tdb_delete failed with error %s\n", tdb_errorstr(tdb) ));
return 0;
}