mirror of
https://gitee.com/he3db/he3pg.git
synced 2024-12-02 04:07:34 +08:00
fix compile problem
Signed-off-by: shipixian <shipixian_yewu@cmss.chinamobile.com>
This commit is contained in:
parent
b1a83865d1
commit
b266740e37
@ -2348,12 +2348,12 @@ FileWriteback(File file, off_t offset, off_t nbytes, uint32 wait_event_info)
|
||||
pgstat_report_wait_end();
|
||||
}
|
||||
|
||||
int
|
||||
He3DBFileRead(File file, char **buffer, off_t offset,
|
||||
uint32 wait_event_info, XLogRecPtr lsn,
|
||||
BufferTag pageTag)
|
||||
{
|
||||
return 0;
|
||||
// int
|
||||
// He3DBFileRead(File file, char **buffer, off_t offset,
|
||||
// uint32 wait_event_info, XLogRecPtr lsn,
|
||||
// BufferTag pageTag)
|
||||
// {
|
||||
// return 0;
|
||||
//TODO 先从本地盘读取数据,如果存在则返回
|
||||
// PageKey pageKey;
|
||||
// Bufrd bufrd;
|
||||
@ -2418,7 +2418,7 @@ He3DBFileRead(File file, char **buffer, off_t offset,
|
||||
// }
|
||||
// return BLCKSZ;
|
||||
// }
|
||||
}
|
||||
// }
|
||||
|
||||
int
|
||||
MasterFileRead(char *buffer,uint32_t dbid, uint32_t relid, uint32_t forkno, uint32_t blockno){
|
||||
|
@ -34,6 +34,7 @@
|
||||
#include "pgstat.h"
|
||||
#include "postmaster/bgwriter.h"
|
||||
#include "storage/bufmgr.h"
|
||||
#include "storage/buf_internals.h"
|
||||
#include "storage/fd.h"
|
||||
#include "storage/md.h"
|
||||
#include "storage/relfilenode.h"
|
||||
|
@ -45,7 +45,6 @@
|
||||
|
||||
#include <dirent.h>
|
||||
#include "access/xlogdefs.h"
|
||||
#include "storage/buf_internals.h"
|
||||
|
||||
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 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 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 He3DBFileWrite(File file, char *buffer, int amount, off_t offset, uint32 wait_event_info);
|
||||
extern int FileSync(File file, uint32 wait_event_info);
|
||||
|
Loading…
Reference in New Issue
Block a user