libfoedus-core
FOEDUS Core Library
log_type.xmacro
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014, Hewlett-Packard Development Company, LP.
3  * The license and distribution terms for this file are placed in LICENSE.txt.
4  */
5 
6 /*
7  * Syntax: X(<log type code name>, <integer value of the type code>, <log type full class name>)
8  *
9  * To add new log types, just insert at an arbitrary place, but note that the value of
10  * log type codes must be unique. To maintain that as easy as possible, you keep the entries
11  * sorted by the value (ignoring the top 4 bits for log kinds).
12  * Do not forget to include the header file of the new log type in log_type.hpp
13  * if you added a new header file.
14  *
15  * A general naming rule: kLogCode<module type name><log name>.
16  * For example, kLogCodeArrayOverwrite.
17  * A general log code like "filler" might omit module type names.
18  *
19  * See LogCode for conventions on log code values.
20  */
21 X(kLogCodeFiller, 0x3001, foedus::log::FillerLogType)
22 X(kLogCodeEpochMarker, 0x3002, foedus::log::EpochMarkerLogType)
23 X(kLogCodeDropLogType, 0x1011, foedus::storage::DropLogType)
24 X(kLogCodeArrayCreate, 0x1021, foedus::storage::array::ArrayCreateLogType)
25 X(kLogCodeArrayOverwrite, 0x0022, foedus::storage::array::ArrayOverwriteLogType)
26 X(kLogCodeArrayIncrement, 0x0023, foedus::storage::array::ArrayIncrementLogType)
27 X(kLogCodeSequentialTruncate, 0x1024, foedus::storage::sequential::SequentialTruncateLogType)
28 X(kLogCodeSequentialCreate, 0x1025, foedus::storage::sequential::SequentialCreateLogType)
29 X(kLogCodeSequentialAppend, 0x0026, foedus::storage::sequential::SequentialAppendLogType)
30 X(kLogCodeHashCreate, 0x1027, foedus::storage::hash::HashCreateLogType)
31 X(kLogCodeHashOverwrite, 0x0028, foedus::storage::hash::HashOverwriteLogType)
32 X(kLogCodeHashInsert, 0x0029, foedus::storage::hash::HashInsertLogType)
33 X(kLogCodeHashDelete, 0x002A, foedus::storage::hash::HashDeleteLogType)
34 X(kLogCodeHashUpdate, 0x002B, foedus::storage::hash::HashUpdateLogType)
35 X(kLogCodeMasstreeCreate, 0x1031, foedus::storage::masstree::MasstreeCreateLogType)
36 X(kLogCodeMasstreeOverwrite, 0x0032, foedus::storage::masstree::MasstreeOverwriteLogType)
37 X(kLogCodeMasstreeInsert, 0x0033, foedus::storage::masstree::MasstreeInsertLogType)
38 X(kLogCodeMasstreeDelete, 0x0034, foedus::storage::masstree::MasstreeDeleteLogType)
39 X(kLogCodeMasstreeUpdate, 0x0035, foedus::storage::masstree::MasstreeUpdateLogType)