Typo round-up
Also reduce log noise when persisting new Journal files
This commit is contained in:
parent
dab9652f6c
commit
e7c8dd7a78
2 changed files with 13 additions and 13 deletions
|
@ -1,6 +1,6 @@
|
|||
%% -------- Overview ---------
|
||||
%%
|
||||
%% The eleveleddb is based on the LSM-tree similar to leveldb, except that:
|
||||
%% Leveled is based on the LSM-tree similar to leveldb, except that:
|
||||
%% - Keys, Metadata and Values are not persisted together - the Keys and
|
||||
%% Metadata are kept in a tree-based ledger, whereas the values are stored
|
||||
%% only in a sequential Journal.
|
||||
|
@ -11,7 +11,7 @@
|
|||
%% and frequent use of iterators)
|
||||
%% - The Journal is an extended nursery log in leveldb terms. It is keyed
|
||||
%% on the sequence number of the write
|
||||
%% - The ledger is a merge tree, where the key is the actaul object key, and
|
||||
%% - The ledger is a merge tree, where the key is the actual object key, and
|
||||
%% the value is the metadata of the object including the sequence number
|
||||
%%
|
||||
%%
|
||||
|
@ -228,14 +228,14 @@
|
|||
% The size of the Bookie's memory, the cache of the recent
|
||||
% additions to the ledger. Defaults to ?CACHE_SIZE, plus some
|
||||
% randomised jitter (randomised jitter will still be added to
|
||||
% configured values
|
||||
% configured values)
|
||||
% The minimum value is 100 - any lower value will be ignored
|
||||
{max_journalsize, pos_integer()} |
|
||||
% The maximum size of a journal file in bytes. The absolute
|
||||
% maximum must be 4GB due to 4 byte file pointers being used
|
||||
{max_journalobjectcount, pos_integer()} |
|
||||
% The maximum size of the journal by count of the objects. The
|
||||
% journal must remian within the limit set by both this figures and
|
||||
% journal must remain within the limit set by both this figures and
|
||||
% the max_journalsize
|
||||
{max_sstslots, pos_integer()} |
|
||||
% The maximum number of slots in a SST file. All testing is done
|
||||
|
@ -248,7 +248,7 @@
|
|||
% partially in hardware (e.g through use of FBWC).
|
||||
% riak_sync is used for backwards compatability with OTP16 - and
|
||||
% will manually call sync() after each write (rather than use the
|
||||
% O_SYNC option on startup
|
||||
% O_SYNC option on startup)
|
||||
{head_only, false|with_lookup|no_lookup} |
|
||||
% When set to true, there are three fundamental changes as to how
|
||||
% leveled will work:
|
||||
|
@ -455,7 +455,7 @@ book_tempput(Pid, Bucket, Key, Object, IndexSpecs, Tag, TTL)
|
|||
%% - A Primary Key and a Value
|
||||
%% - IndexSpecs - a set of secondary key changes associated with the
|
||||
%% transaction
|
||||
%% - A tag indictaing the type of object. Behaviour for metadata extraction,
|
||||
%% - A tag indicating the type of object. Behaviour for metadata extraction,
|
||||
%% and ledger compaction will vary by type. There are three currently
|
||||
%% implemented types i (Index), o (Standard), o_rkv (Riak). Keys added with
|
||||
%% Index tags are not fetchable (as they will not be hashed), but are
|
||||
|
@ -466,7 +466,7 @@ book_tempput(Pid, Bucket, Key, Object, IndexSpecs, Tag, TTL)
|
|||
%%
|
||||
%% The inker will pass the PK/Value/IndexSpecs to the current (append only)
|
||||
%% CDB journal file to persist the change. The call should return either 'ok'
|
||||
%% or 'roll'. -'roll' indicates that the CDB file has insufficient capacity for
|
||||
%% or 'roll'. 'roll' indicates that the CDB file has insufficient capacity for
|
||||
%% this write, and a new journal file should be created (with appropriate
|
||||
%% manifest changes to be made).
|
||||
%%
|
||||
|
@ -1977,7 +1977,7 @@ maybe_longrunning(SW, Aspect) ->
|
|||
-spec readycache_forsnapshot(ledger_cache(), tuple()|no_lookup|undefined)
|
||||
-> ledger_cache().
|
||||
%% @doc
|
||||
%% Strip the ledger cach back to only the relevant informaiton needed in
|
||||
%% Strip the ledger cach back to only the relevant information needed in
|
||||
%% the query, and to make the cache a snapshot (and so not subject to changes
|
||||
%% such as additions to the ets table)
|
||||
readycache_forsnapshot(LedgerCache, {StartKey, EndKey}) ->
|
||||
|
|
|
@ -305,7 +305,7 @@
|
|||
{"I0016",
|
||||
{info, "Writing new version of manifest for manifestSQN=~w"}},
|
||||
{"I0017",
|
||||
{info, "At SQN=~w journal has filename ~s"}},
|
||||
{debug, "At SQN=~w journal has filename ~s"}},
|
||||
{"I0018",
|
||||
{warn, "We're doomed - intention recorded to destroy all files"}},
|
||||
{"I0019",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue