diff options
author | Hans Bolinder <[email protected]> | 2016-12-01 08:32:18 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2016-12-01 08:32:18 +0100 |
commit | ca29c37928ad36cf4270fb3edffc2cf9752f2ed9 (patch) | |
tree | 119892da605f6be989d12c907c3362efdb59d7ab /lib/kernel/src/disk_log.hrl | |
parent | d4701119d50f16dce30ff0a736c7a926e1bbaa04 (diff) | |
parent | 93ac8d2b4b2937b9b7651b5e043c31929f3b2c7c (diff) | |
download | otp-ca29c37928ad36cf4270fb3edffc2cf9752f2ed9.tar.gz otp-ca29c37928ad36cf4270fb3edffc2cf9752f2ed9.tar.bz2 otp-ca29c37928ad36cf4270fb3edffc2cf9752f2ed9.zip |
Merge branch 'richcarl/kernel/disk_log_tweaks/OTP-14057/PR-1245'
* richcarl/kernel/disk_log_tweaks/OTP-14057/PR-1245:
Pass log format through from handle()
Improve caching in disk_log
Use pattern matching for records where suitable
Eliminate more code duplication
Simplify for rflat
Clarify that the type for disk log data is iodata()
Pass through known size instead of recomputing
Use iolist_size instead of local function
Only read log format once in collect loop
Eliminate some code duplication
Rename internal function for clarity
Minor documentation cleanup
Diffstat (limited to 'lib/kernel/src/disk_log.hrl')
-rw-r--r-- | lib/kernel/src/disk_log.hrl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kernel/src/disk_log.hrl b/lib/kernel/src/disk_log.hrl index 3262d979ee..593dbb31ab 100644 --- a/lib/kernel/src/disk_log.hrl +++ b/lib/kernel/src/disk_log.hrl @@ -39,6 +39,7 @@ -define(MAX_FILES, 65000). -define(MAX_BYTES, ((1 bsl 64) - 1)). -define(MAX_CHUNK_SIZE, 65536). +-define(MAX_FWRITE_CACHE, 65536). %% Object defines -define(LOGMAGIC, <<1,2,3,4>>). @@ -54,11 +55,10 @@ %% Types -- alphabetically %%------------------------------------------------------------------------ --type dlog_byte() :: [dlog_byte()] | byte(). -type dlog_format() :: 'external' | 'internal'. -type dlog_format_type() :: 'halt_ext' | 'halt_int' | 'wrap_ext' | 'wrap_int'. -type dlog_head() :: 'none' | {'ok', binary()} | mfa(). --type dlog_head_opt() :: none | term() | binary() | [dlog_byte()]. +-type dlog_head_opt() :: none | term() | iodata(). -type log() :: term(). % XXX: refine -type dlog_mode() :: 'read_only' | 'read_write'. -type dlog_name() :: atom() | string(). |