2.2.2 tdb code broken for HP-UX?

Richard Bollinger rabollinger at home.com
Mon Oct 15 13:46:02 GMT 2001


We use the following patch to elimenate the spurious error messages:

--- ../source/smbd/connection.c Wed Jul 18 07:16:17 2001
+++ ./smbd/connection.c Fri Jul 20 09:46:10 2001
@@ -59,7 +59,8 @@
  kbuf.dsize = sizeof(key);
 
  if (tdb_delete(tdb, kbuf) != 0) {
-  DEBUG(0,("yield_connection: tdb_delete for name %s failed with error %s.\n",
+  int L = (!conn && tdb_error(tdb) == TDB_ERR_NOEXIST) ? 3 : 0;
+  DEBUG(L,("yield_connection: tdb_delete for name %s failed with error %s.\n",
     name, tdb_errorstr(tdb) ));
   return (False);
  }

Rich Bollinger
----- Original Message ----- 
From: "Jeremy Allison" <jra at samba.org>
To: "Michael Steffens" <michael_steffens at hp.com>
Cc: <samba-technical at lists.samba.org>
Sent: Monday, October 15, 2001 3:55 PM
Subject: Re: 2.2.2 tdb code broken for HP-UX?


> >  [2001/10/14 17:30:12, 0] smbd/connection.c:(62)
> >    yield_connection: tdb_delete for name  failed with error Record does not exist.
> 
> This is harmless and doesn't mean a corrucpt tdb. You can
> ignore this.







More information about the samba-technical mailing list