svn commit: samba r10883 - in trunk/source/rpc_server: .
jerry at samba.org
jerry at samba.org
Mon Oct 10 22:17:41 GMT 2005
Author: jerry
Date: 2005-10-10 22:17:41 +0000 (Mon, 10 Oct 2005)
New Revision: 10883
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10883
Log:
cleaning up comments
Modified:
trunk/source/rpc_server/srv_eventlog_lib.c
Changeset:
Modified: trunk/source/rpc_server/srv_eventlog_lib.c
===================================================================
--- trunk/source/rpc_server/srv_eventlog_lib.c 2005-10-10 22:05:06 UTC (rev 10882)
+++ trunk/source/rpc_server/srv_eventlog_lib.c 2005-10-10 22:17:41 UTC (rev 10883)
@@ -104,9 +104,12 @@
return 0;
}
-/* returns the size of the eventlog, and if MaxSize is a non-null ptr, puts
- the MaxSize there. This is purely a way not to have yet another function that solely
- reads the maxsize of the eventlog. Yeah, that's it. */
+/********************************************************************
+ returns the size of the eventlog, and if MaxSize is a non-null
+ ptr, puts the MaxSize there. This is purely a way not to have yet
+ another function that solely reads the maxsize of the eventlog.
+ Yeah, that's it.
+********************************************************************/
int elog_tdb_size( TDB_CONTEXT * tdb, int *MaxSize, int *Retention )
{
@@ -133,20 +136,18 @@
return tsize.size;
}
+/********************************************************************
+ Discard early event logs until we have enough for 'needed' bytes...
+ NO checking done beforehand to see that we actually need to do
+ this, and it's going to pluck records one-by-one. So, it's best
+ to determine that this needs to be done before doing it.
-/*
- Discard early event logs until we have enough for 'needed' bytes...
- NO checking done beforehand to see that we actually need to do this, and
- it's going to pluck records one-by-one. So, it's best to determine that this
- needs to be done before doing it.
+ Setting whack_by_date to True indicates that eventlogs falling
+ outside of the retention range need to go...
+
+ return True if we made enough room to accommodate needed bytes
+********************************************************************/
- Setting whack_by_date to True indicates that eventlogs falling outside of the
- retention range need to go...
-
-*/
-
-/* return True if we made enough room to accommodate needed bytes */
-
BOOL make_way_for_eventlogs( TDB_CONTEXT * the_tdb, int32 needed,
BOOL whack_by_date )
{
@@ -242,10 +243,10 @@
return True;
}
-/*
+/********************************************************************
some hygiene for an eventlog - see how big it is, and then
calculate how many bytes we need to remove
-*/
+********************************************************************/
BOOL prune_eventlog( TDB_CONTEXT * tdb )
{
@@ -269,6 +270,9 @@
return make_way_for_eventlogs( tdb, 0, True );
}
+/********************************************************************
+********************************************************************/
+
BOOL can_write_to_eventlog( TDB_CONTEXT * tdb, int32 needed )
{
int calcd_size;
More information about the samba-cvs
mailing list