@@ -61,6 +61,10 @@ Created 10/25/1995 Heikki Tuuri
61
61
// declare it at storage/innobase/srv/srv0start.cc
62
62
extern PMEM_FILE_COLL* gb_pfc;
63
63
#endif
64
+ #ifdef UNIV_PMEMOBJ_LOG
65
+ #include " my_pmemobj.h"
66
+ extern PMEM_WRAPPER* gb_pmw;
67
+ #endif
64
68
65
69
/* * Tries to close a file in the LRU list. The caller must hold the fil_sys
66
70
mutex.
@@ -5784,15 +5788,15 @@ fil_io(
5784
5788
? false : srv_read_only_mode,
5785
5789
node, message);
5786
5790
5787
- #ifdef UNIV_NVM_LOG
5791
+ #if defined ( UNIV_NVM_LOG) || defined(UNIV_PMEMOBJ_LOG)
5788
5792
if (req_type.is_log () && mode == OS_AIO_LOG){
5789
5793
// In NVM_LOG, we don't use aio, so we need to do the post-processing here
5790
5794
mutex_enter (&fil_system->mutex );
5791
5795
fil_node_complete_io (node, fil_system, req_type);
5792
5796
mutex_exit (&fil_system->mutex );
5793
5797
// log_io_complete() is called in the upper layer
5794
5798
}
5795
- #endif /* UNIV_NVM_LOG */
5799
+ #endif /* UNIV_NVM_LOG || NVM_PMEMOBJ_LOG */
5796
5800
5797
5801
#endif /* UNIV_HOTBACKUP */
5798
5802
@@ -6019,7 +6023,7 @@ fil_flush(
6019
6023
node->n_pending_flushes ++;
6020
6024
6021
6025
mutex_exit (&fil_system->mutex );
6022
- #ifdef UNIV_NVM_LOG
6026
+ #if defined ( UNIV_NVM_LOG) || defined(UNIV_PMEMOBJ_LOG)
6023
6027
if ( space->purpose == FIL_TYPE_LOG ){
6024
6028
// we skip_flush, do nothing
6025
6029
}
0 commit comments