summaryrefslogtreecommitdiff
path: root/source3/script
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-11-17 20:08:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:26 -0500
commit5251618c7fff7635a4b64072f88eaf5e4e25761e (patch)
tree71005176976553554ba598799e8dca8155a09683 /source3/script
parent70cac98b6e1871cf93b379a4834de1778853de86 (diff)
downloadsamba-5251618c7fff7635a4b64072f88eaf5e4e25761e.tar.gz
samba-5251618c7fff7635a4b64072f88eaf5e4e25761e.tar.bz2
samba-5251618c7fff7635a4b64072f88eaf5e4e25761e.zip
r11761: * fix clearing of event logs by truncating the tdb.
This feature got broken in some of the other updates. Now each open handle stores an pointer to an open tdb data structure (not the tdb pointer itself). Clearing can be done with a simple elog_close_tdb( elog, True ) to force a close and then calling elog_open_tdb( logname, True ) to force an tdb truncate. Permissions on existing tdbs are maintained which is important. * We don't currently handle backup. Haven't looked at the format of a backuped up eventlog to know what the deal is. (This used to be commit 2df34c9403446d12f1ceeac38cbda5d3ba805b02)
Diffstat (limited to 'source3/script')
-rw-r--r--source3/script/mkproto.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/script/mkproto.awk b/source3/script/mkproto.awk
index 73a1c2b3f0..a0f3096c84 100644
--- a/source3/script/mkproto.awk
+++ b/source3/script/mkproto.awk
@@ -136,7 +136,7 @@ END {
gotstart = 1;
}
- if( $0 ~ /^NODE_STATUS_STRUCT|SMB_STRUCT_DIR/ ) {
+ if( $0 ~ /^NODE_STATUS_STRUCT|SMB_STRUCT_DIR|ELOG_TDB/ ) {
gotstart = 1;
}