@@ -809,11 +809,11 @@ typedef struct MDB_rxbody {
809
809
* started from so we can avoid overwriting any data used in that
810
810
* particular version.
811
811
*/
812
- _Atomic txnid_t mrb_txnid ;
812
+ _Atomic txnid_t mrb_txnid ; // Changed to _Atomic to support IndexStoreDB
813
813
/** The process ID of the process owning this reader txn. */
814
- _Atomic MDB_PID_T mrb_pid ;
814
+ _Atomic MDB_PID_T mrb_pid ; // Changed to _Atomic to support IndexStoreDB
815
815
/** The thread ID of the thread owning this txn. */
816
- _Atomic MDB_THR_T mrb_tid ;
816
+ _Atomic MDB_THR_T mrb_tid ; // Changed to _Atomic to support IndexStoreDB
817
817
} MDB_rxbody ;
818
818
819
819
/** The actual reader record, with cacheline padding. */
@@ -853,12 +853,12 @@ typedef struct MDB_txbody {
853
853
* This is recorded here only for convenience; the value can always
854
854
* be determined by reading the main database meta pages.
855
855
*/
856
- _Atomic txnid_t mtb_txnid ;
856
+ _Atomic txnid_t mtb_txnid ; // Changed to _Atomic to support IndexStoreDB
857
857
/** The number of slots that have been used in the reader table.
858
858
* This always records the maximum count, it is not decremented
859
859
* when readers release their slots.
860
860
*/
861
- _Atomic unsigned mtb_numreaders ;
861
+ _Atomic unsigned mtb_numreaders ; // Changed to _Atomic to support IndexStoreDB
862
862
#if defined(_WIN32 ) || defined(MDB_USE_POSIX_SEM )
863
863
/** Binary form of names of the reader/writer locks */
864
864
mdb_hash_t mtb_mutexid ;
@@ -1249,7 +1249,7 @@ typedef struct MDB_meta {
1249
1249
* Actually the file may be shorter if the freeDB lists the final pages.
1250
1250
*/
1251
1251
pgno_t mm_last_pg ;
1252
- _Atomic txnid_t mm_txnid ; /**< txnid that committed this page */
1252
+ _Atomic txnid_t mm_txnid ; /**< txnid that committed this page */ // Changed to _Atomic to support IndexStoreDB
1253
1253
} MDB_meta ;
1254
1254
1255
1255
/** Buffer for a stack-allocated meta page.
@@ -1510,7 +1510,7 @@ struct MDB_env {
1510
1510
unsigned int me_os_psize ; /**< OS page size, from #GET_PAGESIZE */
1511
1511
unsigned int me_maxreaders ; /**< size of the reader table */
1512
1512
/** Max #MDB_txninfo.%mti_numreaders of interest to #mdb_env_close() */
1513
- _Atomic int me_close_readers ;
1513
+ _Atomic int me_close_readers ; // Changed to _Atomic to support IndexStoreDB
1514
1514
MDB_dbi me_numdbs ; /**< number of DBs opened */
1515
1515
MDB_dbi me_maxdbs ; /**< size of the DB table */
1516
1516
MDB_PID_T me_pid ; /**< process ID of this env */
@@ -10111,7 +10111,7 @@ typedef struct mdb_copy {
10111
10111
/** Error code. Never cleared if set. Both threads can set nonzero
10112
10112
* to fail the copy. Not mutex-protected, LMDB expects atomic int.
10113
10113
*/
10114
- _Atomic int mc_error ;
10114
+ _Atomic int mc_error ; // Changed to _Atomic to support IndexStoreDB
10115
10115
} mdb_copy ;
10116
10116
10117
10117
/** Dedicated writer thread for compacting copy. */
0 commit comments