fix compile problem

Signed-off-by: shipixian <shipixian_yewu@cmss.chinamobile.com>
This commit is contained in:
shipixian 2023-03-27 14:11:09 +08:00
parent b1a83865d1
commit b266740e37
3 changed files with 9 additions and 9 deletions

View File

@ -2348,12 +2348,12 @@ FileWriteback(File file, off_t offset, off_t nbytes, uint32 wait_event_info)
pgstat_report_wait_end(); pgstat_report_wait_end();
} }
int // int
He3DBFileRead(File file, char **buffer, off_t offset, // He3DBFileRead(File file, char **buffer, off_t offset,
uint32 wait_event_info, XLogRecPtr lsn, // uint32 wait_event_info, XLogRecPtr lsn,
BufferTag pageTag) // BufferTag pageTag)
{ // {
return 0; // return 0;
//TODO 先从本地盘读取数据,如果存在则返回 //TODO 先从本地盘读取数据,如果存在则返回
// PageKey pageKey; // PageKey pageKey;
// Bufrd bufrd; // Bufrd bufrd;
@ -2418,7 +2418,7 @@ He3DBFileRead(File file, char **buffer, off_t offset,
// } // }
// return BLCKSZ; // return BLCKSZ;
// } // }
} // }
int int
MasterFileRead(char *buffer,uint32_t dbid, uint32_t relid, uint32_t forkno, uint32_t blockno){ MasterFileRead(char *buffer,uint32_t dbid, uint32_t relid, uint32_t forkno, uint32_t blockno){

View File

@ -34,6 +34,7 @@
#include "pgstat.h" #include "pgstat.h"
#include "postmaster/bgwriter.h" #include "postmaster/bgwriter.h"
#include "storage/bufmgr.h" #include "storage/bufmgr.h"
#include "storage/buf_internals.h"
#include "storage/fd.h" #include "storage/fd.h"
#include "storage/md.h" #include "storage/md.h"
#include "storage/relfilenode.h" #include "storage/relfilenode.h"

View File

@ -45,7 +45,6 @@
#include <dirent.h> #include <dirent.h>
#include "access/xlogdefs.h" #include "access/xlogdefs.h"
#include "storage/buf_internals.h"
typedef enum RecoveryInitSyncMethod typedef enum RecoveryInitSyncMethod
{ {
@ -96,7 +95,7 @@ extern void FileClose(File file);
extern int FilePrefetch(File file, off_t offset, int amount, uint32 wait_event_info); extern int FilePrefetch(File file, off_t offset, int amount, uint32 wait_event_info);
extern int FileRead(File file, char *buffer, int amount, off_t offset, uint32 wait_event_info); extern int FileRead(File file, char *buffer, int amount, off_t offset, uint32 wait_event_info);
extern int MasterFileRead(char *buffer, uint32_t dbid, uint32_t relid, uint32_t forkno, uint32_t blockno); extern int MasterFileRead(char *buffer, uint32_t dbid, uint32_t relid, uint32_t forkno, uint32_t blockno);
extern int He3DBFileRead(File file, char **buffer, off_t offset, uint32 wait_event_info, XLogRecPtr lsn, BufferTag pageTag); // extern int He3DBFileRead(File file, char **buffer, off_t offset, uint32 wait_event_info, XLogRecPtr lsn, BufferTag pageTag);
extern int FileWrite(File file, char *buffer, int amount, off_t offset, uint32 wait_event_info); extern int FileWrite(File file, char *buffer, int amount, off_t offset, uint32 wait_event_info);
extern int He3DBFileWrite(File file, char *buffer, int amount, off_t offset, uint32 wait_event_info); extern int He3DBFileWrite(File file, char *buffer, int amount, off_t offset, uint32 wait_event_info);
extern int FileSync(File file, uint32 wait_event_info); extern int FileSync(File file, uint32 wait_event_info);