mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
04a61d98d5
git-svn-id: file:///svn/tokudb@2645 c7de825b-a66e-492c-adef-691d508d4ae1
50 lines
1.4 KiB
Text
50 lines
1.4 KiB
Text
@page
|
|
@section @code{DB_ENV->set_lg_max}
|
|
@setfilename tokudb
|
|
@settitle DB_ENV->set_lg_max
|
|
|
|
@c man title db_del tokudb
|
|
@unnumberedsubsec Synopsis
|
|
@c man begin SYNOPSIS
|
|
@code{#include <db.h>}
|
|
|
|
@noindent
|
|
@code{int DB_ENV->set_lg_max(DB_ENV *}@var{env}@code{, u_int32_t }@var{lg_max}@code{);}
|
|
|
|
@code{int DB_ENV->get_lg_max(DB_ENV *}@var{env}@code{, u_int32_t*}@var{lg_max_p}@code{);}
|
|
@c man end
|
|
@unnumberedsubsec Description
|
|
@c man begin DESCRIPTION
|
|
Set or get the maximum size, in bytes, of any given log file.
|
|
|
|
When logging is configured, the default maximum log size is 100MiB.
|
|
|
|
It is possible that a log file will be larger than @var{lg_max}: The
|
|
logs comprise log entries, and TokuDB always writes a complete log
|
|
entry into a log file. Thus if a log entry is larger than
|
|
@var{lg_max}, then the resulting log file could be larger.
|
|
|
|
You may call @code{DB_ENV->set_log_max} at any time on any environment
|
|
that has been created but hasn't yet been closed. Subsequently
|
|
written log files will be smaller than the specified size.
|
|
|
|
@c man end
|
|
@unnumberedsubsec Parameters
|
|
@c man begin PARAMETERS
|
|
@table @var
|
|
@item env
|
|
The @code{DB_ENV} handle.
|
|
@item lg_max
|
|
For @code{DB_ENV->set_log_max}, the new maximum logfile size, in bytes.
|
|
@item lg_max_p
|
|
For @code{DB_ENV->get_log_max}, the return result will be stored in @code{*}@var{lg_max_p}.
|
|
@end table
|
|
|
|
@c man end
|
|
@unnumberedsubsec Return Value
|
|
@c man begin RETURNVALUE
|
|
Returns zero on success.
|
|
|
|
@c man end
|
|
|
|
@include everyman.texi
|