The characteristics of the runtime currently active can be obtained by calling the
mco_get_runtime_info()
API. These characteristics are returned in the mco_runtime_info_t structure, which has the
following elements. Many of these are boolean (uint1) values (where 1 = MCO_YES
and 0 = MCO_NO) indicating whether that feature is enabled or not.
typedef struct mco_runtime_info_t_ { uint1 mco_version_major; /* eXtremeDB version */ uint1 mco_version_minor; /* eXtremeDB version */ uint2 mco_build_number; /* eXtremeDB build number */ uint1 mco_size_t; /* sizeof mco_size_t variable, depends on x32/x64 architecture */ uint1 mco_offs_t; /* sizeof mco_offs_t variable, depends on x32/x64 architecture */ uint1 uint4_supported; /* uint4 datatype support */ uint1 float_supported; /* double/float datatype support */ uint1 mco_checklevel; /* runtime's checklevel, 0 for non-debug libraries */ uint1 evaluation_version; /* Evaluation runtime */ uint1 large_database_supported; /* Large database support (>4G) for x32 runtime mode */ uint1 collation_supported; /* External collations (index comparison) support */ uint1 heap31_supported; /* eXtremeDB v3.1 application level heap feature support. (DEPRECATED - value is always 0) */ uint1 bin_serialization_supported; /* Binary or XML serialization support */ uint1 fixedrec_supported; /* FIXEDREC allocations for constant-size objects support */ uint1 statistics_supported; /* Statistic collection enabled */ uint1 events_supported; /* Synch/Asynch events support */ uint1 save_load_supported; /* Database image save/load support */ uint1 object_initialization_supported; /* Support of new object fields initialization (instead of zeros) support */ uint1 direct_index_field_access_supported; /* Use values of indexed fields from the indexes instead of object bodies optimization (persistent objects) */ uint1 multiprocess_access_supported; /* conventional or shared memory driver linked into the program */ uint1 object_repack_supported; /* Support of dynamic object repack feature. Obsolete. Left for compatibility */ uint1 transaction_logging_supported; /* Transaction Logging (TL) feature support */ uint1 cluster_supported; /* Cluster (CL) feature support */ uint1 high_availability_supported; /* High Availability (HA) feature support */ uint1 ha_multicast_supported; /* HA Multi-cast support */ uint1 ha_incremental_replication_supported; /* HA incremental replication support */ uint1 binary_schema_evalution_supported; /* Binary schema evaluation support */ uint1 unicode_supported; /* Unicode (nchar/nstring datatype) support */ uint1 wchar_supported; /* WChar (wchar/wstring datatype) support. Required C/C++ runtime */ uint1 recovery_supported; /* Recovery support. Obsolete, left for compatibility */ uint1 disk_supported; /* Support for persistent objects (vtmem/vtdsk runtime) */ uint1 direct_pointers_supported; /* Direct- or offset-based pointers in the database (DPTR/OFFS runtime) */ uint1 persistent_object_supported; /* Object persistence support */ uint1 xml_import_export_supported; /* XML database export/import support */ uint1 user_defined_index_supported; /* User-defined index (comparison) support */ uint1 multifile_supported; /* Multi-file persistent storage support */ uint1 multifile_descriptor_supported; /* Enable Multi-file descriptor file (mfd-file) support for multi-file persistent storage feature */ uint1 two_phase_commit_supported; /* Two-phase commit support */ uint1 rtree_supported; /* Include rtree index implementation code into runtime */ uint1 tree_based_hash; /* tree-based hash implementation (for internal debugging) */ uint1 tmgr_mvcc_async_cleanup; /* Value of 1 indicates “delayed cleanup of unneeded object versions”; value of 0 means cleanup immediately */ uint1 concurent_disk_btree; /* Always on, obsolete, left for compatibility */ uint1 open_cursor_goto_first; /* Indicates initial positioning of new cursors to the first element */ uint1 smart_index_insert; /* Pre-sort data records in a voluntary index creation procedure */ uint1 btree_leaf_lock; /* Fine-grain locking of btree indexes */ uint1 null_statistics; /* Always on, obsolete, left for compatibility */ uint1 implicit_runtime_start; /* Always on, obsolete, left for compatibility */ uint1 bufferized_sync_iostream; /* Indicates that HA transmission bufferization is enabled for synchronization procedure */ uint1 async_replication; /* Asynchronous HA replication enabled */ uint1 fast_transaction_list; /* Indicates tree index in transaction list implementation enabled (MURSIW) */ uint1 extendable_dirty_page_bitmap; /* Persistent storage's dirty pages map extends */ uint1 mursiw_policy; /* MURSIW TM behavior: 0 - Priority-based transaction queue, 1 - Sequential transaction queue, 2 - Global sync, 3 - RW-Lock */ uint1 sync_capabilities; /* Sync. primitives implementation capabilities, bit mask: 1 - single-process, 2 - multi-process capable primitives */ uint1 char_comparison_policy; /* Compare chars as: 0 - Default, 1 - as signed, 2 - as unsigned */ uint4 stream_buffer_size; /* Size of buffer used in streaming code in HA / CL / TL etc. (Also for Stream Reader and Stream Writer functions.) */ uint1 max_db_instances; /* Max. number of database instances supported by the runtime */ uint1 max_db_name_length; /* Max. length of a database name supported by the runtime */ int max_extends; /* Max. number of extends of database memory area */ uint4 tl_page_buffer_size; /* Size of internal buffers that TL operates */ uint2 ha_max_replicas; /* Max. number of HA replicas at a time */ uint4 ha_transmit_buffer_size; /* Size of buffer used in HA to send data from commit, default is 2K */ uint4 ha_syncronization_buffer_size; /* HA synchronization stream IO buffer size, default is 2K */ uint4 default_redo_log_limit; /* Default size of REDO log length limit, default is 16M */ uint1 mvcc_critical_sections; /* Number of critical sections used by MVCC, it is better to be a prime number */ uint1 mvcc_per_index_locks; /* Number of locks used by index, it is better to be a prime number */ uint2 con_disk_page_cache_size; /* Size of per-connection page cache. The runtime pre-allocates some pages to speed up page allocation when needed */ uint1 small_con_cache_threshold; /* Use hashed per-connection cache if the con_disk_page_cache_size > small_con_cache_threshold; use an array otherwise */ uint4 extendable_dirty_page_bitmap_limit; /* Max bitmap size if extendable dirty page bitmap enabled */ uint1 max_vista_sessions; /* Max number of Vista sessions (Windows Vista only) */ uint1 concurrent_write_transactions; /* Does current Transaction Manager support concurrent write transactions or not */ uint1 encryption_support; /* Database encryption enabled */ const char *mco_revision; /* String eXtremeDB version number */ } mco_runtime_info_t;
mco_version_major
mco_version_minor
mco_build_number
mco_size_t
mco_size_t variable; depends on x32/x64 architecture.mco_offs_t
mco_offs_t variable; depends on x32/x64 architecture.uint4_supported
True, the uint4 data type is supported.float_supported
True, the double/float data types are supported.mco_checklevel
evaluation_version
large_database_supported
True, large databases (>4G) are supported for x32 runtime mode.collation_supported
True, external collations (index comparison) are supported.heap31_supported
True, the eXtremeDB
v3.1 application-level heap feature is supported.bin_serialization_supported
True, binary or XML serialization is supported.fixedrec_supported
True, FIXEDREC allocations for constant-size objects are supported.statistics_supported
True, statistics collection is enabled.events_supported
True, synchronous/asynchronous events are supported.save_load_supported
True, database image save/load is supported.object_initialization_supported
True, initialization of new object fields (instead of zeros) is supported.direct_index_field_access_supported
True, the optimization to use values of indexed fields from the indexes instead of
object bodies is supported (persistent objects).multiprocess_access_supported
object_repack_supported
transaction_logging_supported
True, the eXtremeDB Transaction Logging
(TL) feature is supported.cluster_supported
True, the eXtremeDB Cluster
(CL) feature is supported.high_availability_supported
True, the eXtremeDB High Availability
(HA) feature is supported.ha_multicast_supported
True, HA multicast is supported.ha_incremental_replication_supported
True, HA incremental replication is supported.binary_schema_evalution_supported
True, binary schema evaluation is supported.unicode_supported
True, Unicode (nchar / nstring data types) is supported.wchar_supported
True, WChar (wchar / wstring data types) is supported.
Required C/C++ runtime.recovery_supported
disk_supported
True, persistent objects (vtmem / vtdsk runtime) are supported.direct_pointers_supported
True, direct- or offset-based pointers in the database
(DPTR / OFFS runtime) are supported.persistent_object_supported
True, object persistence is supported (allows persistent objects in IM-OFFS runtime).xml_import_export_supported
True, XML database export/import is supported.user_defined_index_supported
True, user-defined indexes (comparison) are supported.multifile_supported
True, multi-file persistent storage is supported.multifile_descriptor_supported
True, the multi-file descriptor file (mfd-file) is supported for the multi-file
persistent storage feature.two_phase_commit_supported
True, two-phase commit is supported.rtree_supported
True, rtree index implementation code is included in the runtime.tree_based_hash
True, the tree-based hash implementation (for internal debugging) is supported.tmgr_mvcc_async_cleanup
MCO_CFG_TMGR_MVCC_ASYNC_CLEANUP in file
mcocfg.h).concurent_disk_btree
open_cursor_goto_first
smart_index_insert
btree_leaf_lock
tree indexes.null_statistics
implicit_runtime_start
bufferized_sync_iostream
async_replication
fast_transaction_list
tree index in the transaction list implementation is enabled (MURSIW).extendable_dirty_page_bitmap
mursiw_policy
MURSIW TM behavior:
0 — Priority-based transaction queue, 1 — Sequential transaction queue, 2 — Global sync, 3 — RW-Lock.sync_capabilities
char_comparition_policy
stream_buffer_size
max_db_instances
max_db_name_length
max_extends
tl_page_buffer_size
ha_max_replicas
ha_transmit_buffer_size
ha_syncronization_buffer_size
default_redo_log_limit
REDO log length limit; default is 16M.mvcc_critical_sections
mvcc_per_index_locks
con_disk_page_cache_size
small_con_cache_threshold
con_disk_page_cache_size > small_con_cache_threshold; uses an array otherwise.extendable_dirty_page_bitmap_limit
max_vista_sessions
concurrent_write_transactions
rc4_encryption_support
mco_revision