回退数据写零
This commit is contained in:
@ -502,12 +502,7 @@ void df_extend_internal(SegLogicFile *sf)
|
||||
if (new_sliceno >= sf->vector_capacity) {
|
||||
df_extend_file_vector(sf);
|
||||
}
|
||||
int new_fd;
|
||||
if (ENABLE_DSS) {
|
||||
new_fd = dv_open_file(filename, O_RDWR | O_CREAT | DSS_FT_NODE_FLAG_INNER_INITED, SEGMENT_FILE_MODE);
|
||||
} else {
|
||||
new_fd = dv_open_file(filename, O_RDWR | O_CREAT, SEGMENT_FILE_MODE);
|
||||
}
|
||||
int new_fd = dv_open_file(filename, O_RDWR | O_CREAT, SEGMENT_FILE_MODE);
|
||||
if (new_fd < 0) {
|
||||
ereport(ERROR, (errcode_for_file_access(), errmsg("[segpage] could not create file \"%s\": %m", filename)));
|
||||
}
|
||||
|
||||
@ -30,7 +30,6 @@
|
||||
#include "dss_api_def.h"
|
||||
|
||||
#define SS_LIBDSS_NAME "libdssapi.so"
|
||||
#define DSS_FT_NODE_FLAG_INNER_INITED 0x80000000
|
||||
int dss_device_init(const char *conn_path, bool enable_dss);
|
||||
|
||||
// callback for register dssapi
|
||||
|
||||
Reference in New Issue
Block a user