@@ -209,38 +209,38 @@ typedef vec<TraNumber> TransactionsVector;
209209//
210210// bit values for dbb_flags
211211//
212- const ULONG DBB_damaged = 0x1L ;
213- const ULONG DBB_exclusive = 0x2L ; // Database is accessed in exclusive mode
214- const ULONG DBB_bugcheck = 0x4L ; // Bugcheck has occurred
215- const ULONG DBB_garbage_collector = 0x8L ; // garbage collector thread exists
216- const ULONG DBB_gc_active = 0x10L ; // ... and is actively working.
217- const ULONG DBB_gc_pending = 0x20L ; // garbage collection requested
218- const ULONG DBB_force_write = 0x40L ; // Database is forced write
219- const ULONG DBB_no_reserve = 0x80L ; // No reserve space for versions
220- const ULONG DBB_DB_SQL_dialect_3 = 0x100L ; // database SQL dialect 3
221- const ULONG DBB_read_only = 0x200L ; // DB is ReadOnly (RO). If not set, DB is RW
222- const ULONG DBB_being_opened_read_only = 0x400L ; // DB is being opened RO. If unset, opened as RW
223- const ULONG DBB_no_ast = 0x800L ; // AST delivery is prohibited
224- const ULONG DBB_sweep_in_progress = 0x1000L ; // A database sweep operation is in progress
225- const ULONG DBB_gc_starting = 0x2000L ; // garbage collector thread is starting
226- const ULONG DBB_suspend_bgio = 0x4000L ; // Suspend I/O by background threads
227- const ULONG DBB_new = 0x8000L ; // Database object is just created
228- const ULONG DBB_gc_cooperative = 0x10000L ; // cooperative garbage collection
229- const ULONG DBB_gc_background = 0x20000L ; // background garbage collection by gc_thread
230- const ULONG DBB_sweep_starting = 0x40000L ; // Auto-sweep is starting
231- const ULONG DBB_creating = 0x80000L ; // Database creation is in progress
232- const ULONG DBB_shared = 0x100000L ; // Database object is shared among connections
233- const ULONG DBB_restoring = 0x200000L ; // Database restore is in progress
212+ inline constexpr ULONG DBB_damaged = 0x1L ;
213+ inline constexpr ULONG DBB_exclusive = 0x2L ; // Database is accessed in exclusive mode
214+ inline constexpr ULONG DBB_bugcheck = 0x4L ; // Bugcheck has occurred
215+ inline constexpr ULONG DBB_garbage_collector = 0x8L ; // garbage collector thread exists
216+ inline constexpr ULONG DBB_gc_active = 0x10L ; // ... and is actively working.
217+ inline constexpr ULONG DBB_gc_pending = 0x20L ; // garbage collection requested
218+ inline constexpr ULONG DBB_force_write = 0x40L ; // Database is forced write
219+ inline constexpr ULONG DBB_no_reserve = 0x80L ; // No reserve space for versions
220+ inline constexpr ULONG DBB_DB_SQL_dialect_3 = 0x100L ; // database SQL dialect 3
221+ inline constexpr ULONG DBB_read_only = 0x200L ; // DB is ReadOnly (RO). If not set, DB is RW
222+ inline constexpr ULONG DBB_being_opened_read_only = 0x400L ; // DB is being opened RO. If unset, opened as RW
223+ inline constexpr ULONG DBB_no_ast = 0x800L ; // AST delivery is prohibited
224+ inline constexpr ULONG DBB_sweep_in_progress = 0x1000L ; // A database sweep operation is in progress
225+ inline constexpr ULONG DBB_gc_starting = 0x2000L ; // garbage collector thread is starting
226+ inline constexpr ULONG DBB_suspend_bgio = 0x4000L ; // Suspend I/O by background threads
227+ inline constexpr ULONG DBB_new = 0x8000L ; // Database object is just created
228+ inline constexpr ULONG DBB_gc_cooperative = 0x10000L ; // cooperative garbage collection
229+ inline constexpr ULONG DBB_gc_background = 0x20000L ; // background garbage collection by gc_thread
230+ inline constexpr ULONG DBB_sweep_starting = 0x40000L ; // Auto-sweep is starting
231+ inline constexpr ULONG DBB_creating = 0x80000L ; // Database creation is in progress
232+ inline constexpr ULONG DBB_shared = 0x100000L ; // Database object is shared among connections
233+ inline constexpr ULONG DBB_restoring = 0x200000L ; // Database restore is in progress
234234
235235//
236236// dbb_ast_flags
237237//
238- const ULONG DBB_blocking = 0x1L ; // Exclusive mode is blocking
239- const ULONG DBB_get_shadows = 0x2L ; // Signal received to check for new shadows
240- const ULONG DBB_assert_locks = 0x4L ; // Locks are to be asserted
241- const ULONG DBB_shut_attach = 0x8L ; // No new attachments accepted
242- const ULONG DBB_shut_tran = 0x10L ; // No new transactions accepted
243- const ULONG DBB_shut_force = 0x20L ; // Forced shutdown in progress
238+ inline constexpr ULONG DBB_blocking = 0x1L ; // Exclusive mode is blocking
239+ inline constexpr ULONG DBB_get_shadows = 0x2L ; // Signal received to check for new shadows
240+ inline constexpr ULONG DBB_assert_locks = 0x4L ; // Locks are to be asserted
241+ inline constexpr ULONG DBB_shut_attach = 0x8L ; // No new attachments accepted
242+ inline constexpr ULONG DBB_shut_tran = 0x10L ; // No new transactions accepted
243+ inline constexpr ULONG DBB_shut_force = 0x20L ; // Forced shutdown in progress
244244
245245class Database : public pool_alloc <type_dbb>
246246{
0 commit comments