新增数据类型转换

This commit is contained in:
wangjiming
2026-08-05 16:23:00 +08:00
parent b5c6557341
commit c64fa1cd61
10 changed files with 620 additions and 322 deletions

View File

@@ -531,6 +531,10 @@ class LocalDataProcessStorage:
@staticmethod
def _fsync_directory(directory: Path) -> None:
# Windows 不支持以 O_RDONLY 打开目录做 fsync跳过即可。
# 数据完整性在 Linux 生产环境保障Windows 开发环境忽略。
if os.name == "nt":
return
descriptor = os.open(directory, os.O_RDONLY)
try:
os.fsync(descriptor)