Skip to content

Commit 118319d

Browse files
committed
Fix review comments
1 parent cd85064 commit 118319d

3 files changed

Lines changed: 11 additions & 12 deletions

File tree

src/backend/access/aocs/test/aocsam_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ test__aocs_begin_headerscan(void **state)
2323
SMgrRelationData smgrdata;
2424
FormData_pg_class pgclass;
2525

26-
memset(&reldata, 0, sizeof(SMgrRelationData));
26+
memset(&reldata, 0, sizeof(RelationData));
2727

2828
reldata.rd_rel = &pgclass;
2929
reldata.rd_id = 12345;

src/include/storage/smgr.h

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ typedef struct SMgrRelationData
7474
char smgr_relpersistence;
7575
/* pointer to storage manager */
7676
const struct f_smgr *smgr;
77-
/*pointer to AO storage manager */
77+
/*pointer to AO storage manager */
7878
const struct f_smgr_ao *smgr_ao;
7979

8080
/*
@@ -131,24 +131,22 @@ typedef struct f_smgr
131131
} f_smgr;
132132

133133
typedef struct f_smgr_ao {
134-
off_t (*smgr_FileDiskSize) (File file);
135-
void (*smgr_FileClose) (File file);
136-
int (*smgr_FileTruncate) (File file, int64 offset, uint32 wait_event_info);
137-
File (*smgr_AORelOpenSegFile) (const char *filePath, int fileFlags);
138-
int (*smgr_FileWrite) (File file, char *buffer, int amount, off_t offset, uint32 wait_event_info);
139-
int (*smgr_FileRead) (File file, char *buffer, int amount, off_t offset, uint32 wait_event_info);
140-
int (*smgr_FileSync) (File file, uint32 wait_event_info);
134+
off_t (*smgr_FileDiskSize) (File file);
135+
void (*smgr_FileClose) (File file);
136+
int (*smgr_FileTruncate) (File file, int64 offset, uint32 wait_event_info);
137+
File (*smgr_AORelOpenSegFile) (const char *filePath, int fileFlags);
138+
int (*smgr_FileWrite) (File file, char *buffer, int amount, off_t offset, uint32 wait_event_info);
139+
int (*smgr_FileRead) (File file, char *buffer, int amount, off_t offset, uint32 wait_event_info);
140+
int (*smgr_FileSync) (File file, uint32 wait_event_info);
141141
} f_smgr_ao;
142142

143143

144144
typedef void (*smgr_init_hook_type) (void);
145145
typedef void (*smgr_hook_type) (SMgrRelation reln, BackendId backend, SMgrImpl which, Relation rel);
146146
typedef void (*smgr_shutdown_hook_type) (void);
147-
typedef void (*smgrao_hook_type)(SMgrRelation reln, BackendId backend, SMgrImpl which, Relation rel);
148147
extern PGDLLIMPORT smgr_init_hook_type smgr_init_hook;
149148
extern PGDLLIMPORT smgr_hook_type smgr_hook;
150149
extern PGDLLIMPORT smgr_shutdown_hook_type smgr_shutdown_hook;
151-
extern PGDLLIMPORT smgrao_hook_type smgrao_hook;
152150

153151
extern bool smgr_is_heap_relation(SMgrRelation reln);
154152

src/include/utils/datumstream.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ extern DatumStreamRead *create_datumstreamread(
275275
Form_pg_attribute attr,
276276
char *relname,
277277
char *title,
278-
RelFileNode *relFileNode, const struct f_smgr_ao *smgrAO);
278+
RelFileNode *relFileNode,
279+
const struct f_smgr_ao *smgrAO);
279280

280281
extern void datumstreamwrite_open_file(
281282
DatumStreamWrite * ds,

0 commit comments

Comments
 (0)