回退数据写零

This commit is contained in:
shirley_zhengx
2024-06-15 18:14:35 +08:00
committed by yaoxin
parent 76b94a051f
commit 862fc1d7f3
2 changed files with 1 additions and 7 deletions

View File

@ -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)));
}

View File

@ -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