Looks like something happened in a previous merge: - Don't set the limit here, its already set. - Don't write the log file header here, its also been written.

remotes/origin/master-1.0.x
Jason Ish 16 years ago committed by Victor Julien
parent 40f9653c06
commit 37bb733929

@ -269,17 +269,6 @@ TmEcode AlertUnifiedLogThreadInit(ThreadVars *t, void *initdata, void **data)
/** Use the Ouptut Context (file pointer and mutex) */ /** Use the Ouptut Context (file pointer and mutex) */
aun->file_ctx = ((OutputCtx *)initdata)->data; aun->file_ctx = ((OutputCtx *)initdata)->data;
/** Write Unified header */
int ret = AlertUnifiedLogWriteFileHeader(aun->file_ctx);
if (ret != 0) {
printf("Error: AlertUnifiedLogWriteFileHeader failed.\n");
SCFree(aun);
return TM_ECODE_FAILED;
}
/* XXX make configurable */
aun->file_ctx->size_limit = 1 * 1024 * 1024;
*data = (void *)aun; *data = (void *)aun;
return TM_ECODE_OK; return TM_ECODE_OK;
} }

Loading…
Cancel
Save