The function
mco_runtime_setoption()allows applications to control certain characteristics of the eXtremeDB runtime. The following possible values for runtime options are defined in the header filemco.h:MCO_RT_OPTION_EXTHEAPSEnables use of custom heap management. This option has been deprecated in version 7.1. If specified,mco_runtime_setoption( MCO_RT_OPTION_EXTHEAPS, 1)will return theMCO_E_UNSUPPORTEDerror code.MCO_RT_OPTION_DB_SAVE_CRCEnables CRC32 coverage of stream consistency. This option has been deprecated in version 7.1. See mco_db_load(). The CRC is always kept with a saved database image since version 7.1. Note that to preserve backward compatibility themco_db_load()function is able to load a snapshot saved without CRC. This ability will be removed from future releases.MCO_RT_OPTION_MARK_LAST_OBJSpecifies that notification of “end-of-transaction” is required. (See Transaction Logging.)MCO_RT_CRC_ALGORITHMSpecifies the CRC32 algorithm used to verify persistent database consistency.MCO_RT_MAX_PATRICIA_DEPTHSpecifies the maximum depth of a Patricia trie index before the errorMCO_E_PATRICIA_TOO_DEEPis thrown. (Default value is 256.)MCO_RT_MAX_DYNAMIC_PIPESDefines the maximum number ofPIPE_BUFtype devices that can be added through mco_db_extend_dev(). (See Transaction Logging.)MCO_RT_OPTION_CLASS_LOAD_MERGEDefines the policy when the functionmco_class_load()needs to merge (append) loaded objects with objects already existing in the database. The default value is 0 (delete all objects of the specified class before loading).MCO_RT_OPTION_DATETIME_PRECISIONSpecifies the time resolution (precision) fordatetimevalues:1— seconds,1000— milliseconds,1000000— microseconds,1000000000— nanoseconds.MCO_RT_OPTION_LASTThis is not an option but simply a marker to facilitate obtaining the total count of runtime options.Unix shared memory options
MCO_RT_OPTION_UNIX_SHM_MASKSets the Unix shared memory access mode. (See “Shared Memory Runtime Options”.)POSIX shared memory options
MCO_RT_POSIX_SHM_OPTEnables setting a combination of the following POSIX shared memory options.MCO_RT_POSIX_SHM_ANONYMOUSEnables optionMAP_ANONYMOUSof the POSIX functionmmapthat provides mapping of virtual shared memory to a current process.MCO_RT_POSIX_SHM_SHAREDSpecifies that optionMAP_SHAREDof the POSIX functionmmapwill be used. Otherwise optionMAP_PRIVATEis used.Windows shared memory and synchronization primitives naming and security descriptor options
MCO_RT_WINDOWS_SHM_OPTEnables setting a combination of the following Windows shared memory options.MCO_RT_WINDOWS_SHM_PREFIX_GLOBALUses the global prefix. Shared objects are visible in all sessions.MCO_RT_WINDOWS_SHM_PREFIX_LOCALUses the local prefix. Shared objects are visible in the current session only.MCO_RT_WINDOWS_SHM_PREFIX_SESSIONSProvides the Vista sessions fix.MCO_RT_WINDOWS_SHM_PREFIX_NONEUses no prefix (default).MCO_RT_WINDOWS_SHM_PREFIX_MASKAllows everyone to access.MCO_RT_WINDOWS_SHM_SEC_DESCR_EMPTYUses the Windows default policy (default).MCO_RT_WINDOWS_SHM_SEC_DESCR_SAMEUSERAllows only the same user to access.The default Windows shared memory options combination is:
MCO_RT_WINDOWS_SHM_PREFIX_NONE|MCO_RT_WINDOWS_SHM_SEC_DESCR_NULLwhich makes the database visible and accessible from the local session only.CRC algorithms
MCO_RT_CRC32_NONEDoes not calculate CRC.MCO_RT_CRC32Uses the implementation of CRC used prior to release 15523 2014-07-17.MCO_RT_CRC32_FASTCalculates the CRC only for the first and last 8-byte word of data.MCO_RT_CRC32_OLDUses the implementation of CRC used prior to release 12823 2013-01-28.MCO_RT_CRC32CUses CRC32C hardware & software implementations used after release 15523 2014-07-17.