comments cleanup
authorArt Cancro <ajc@citadel.org>
Fri, 11 Aug 2023 13:21:45 +0000 (04:21 -0900)
committerArt Cancro <ajc@citadel.org>
Fri, 11 Aug 2023 13:21:45 +0000 (04:21 -0900)
citadel/server/backends/berkeley_db/berkeley_db.c

index c9e355a110a862016d19f3fb162ab9a1a3b686a2..552b427ceddbbecfbcefc0c1e9490b251fc4b9f5 100644 (file)
@@ -33,13 +33,15 @@ static DB_ENV *dbenv;               // The DB environment (global)
 
 // Thread-Specific-Storage items for this backend
 struct thread_tsd {
-       DB_TXN *tid;            /* Transaction handle */
-       DBC *cursors[MAXCDB];   /* Cursors, for traversals... */
+       DB_TXN *tid;            // Transaction handle
+       DBC *cursors[MAXCDB];   // Cursors, for traversals...
 };
 
+
 pthread_key_t bdb_thread_key;
 #define TSD bdb_tsd()
 
+
 // Return a pointer to our thread-specific (not session-specific) data.
 struct thread_tsd *bdb_tsd(void) {
 
@@ -52,7 +54,6 @@ struct thread_tsd *bdb_tsd(void) {
        c = (struct thread_tsd *) malloc(sizeof(struct thread_tsd));
        memset(c, 0, sizeof(struct thread_tsd));
        pthread_setspecific(bdb_thread_key, (const void *) c);
-       syslog(LOG_DEBUG, "\033[31mCREATED %lx\033[0m", (long unsigned int)c);
        return(c);
 }
        
@@ -794,5 +795,3 @@ void bdb_init_backend(void) {
 
        syslog(LOG_INFO, "db: initialized Berkeley DB backend");
 }
-
-