mirror of
https://github.com/neondatabase/neon.git
synced 2026-10-27 22:16:46 +00:00
fsync directory before mark file removal (#4986)
## Problem Deletions can be possibly reordered. Use fsync to avoid the case when mark file doesnt exist but other tenant/timeline files do. See added comments. resolves #4987
This commit is contained in:
@@ -284,4 +284,4 @@ MANY_SMALL_LAYERS_TENANT_CONFIG = {
|
||||
|
||||
|
||||
def poll_for_remote_storage_iterations(remote_storage_kind: RemoteStorageKind) -> int:
|
||||
return 20 if remote_storage_kind is RemoteStorageKind.REAL_S3 else 8
|
||||
return 30 if remote_storage_kind is RemoteStorageKind.REAL_S3 else 10
|
||||
|
||||
Reference in New Issue
Block a user