修复主备倒换后,新主由于fd是0,导致读和aio出错的问题
This commit is contained in:
committed by
chendong76
parent
49e10a541b
commit
2c01990d00
@ -232,7 +232,7 @@ SegPhysicalFile df_get_physical_file(SegLogicFile *sf, int sliceno, BlockNumber
|
||||
}
|
||||
|
||||
SegmentCheck(sliceno < sf->file_num);
|
||||
if (SS_STANDBY_MODE && sf->segfiles[sliceno].fd <= 0) {
|
||||
if (ENABLE_DMS && sf->segfiles[sliceno].fd <= 0) {
|
||||
char *filename = slice_filename(sf->filename, sliceno);
|
||||
sf->segfiles[sliceno].fd = dv_open_file(filename, O_RDONLY | PG_BINARY, SEGMENT_FILE_MODE);
|
||||
pfree(filename);
|
||||
|
||||
Reference in New Issue
Block a user