* Wrap housekeeper and timer events in transaction open/close functions
[citadel.git] / citadel / sysdep.c
index 8a37d59339bd8021a41526565f5dd7083ecec0f4..23ef843700911978d09b5d13f5b04f844fed16ad 100644 (file)
@@ -1195,7 +1195,9 @@ SETUP_FD: memcpy(&readfds, &masterfds, sizeof masterfds);
                dead_session_purge();
                if ((time(NULL) - last_timer) > 60L) {
                        last_timer = time(NULL);
+                       cdb_begin_transaction();
                        PerformSessionHooks(EVT_TIMER);
+                       cdb_end_transaction();
                }
        }