You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AWS Lambda only allows writing to a folder which is mounted with a file system that does not support posix_fallocate. This means that Realm will fail and throw an exception:
Error: posix_fallocate() failed: Operation not permitted
AWS Lambda only allows writing to a folder which is mounted with a file system that does not support
posix_fallocate
. This means that Realm will fail and throw an exception:which comes from here: https://github.com/realm/realm-core/blob/master/src/realm/util/file.cpp#L822
Basically, the problem is that we take a decision at compile time, when only at runtime we really have all the elements to take it.
I think that, before throwing that exception, we should try falling back to the non-atomic version (available here: https://github.com/realm/realm-core/blob/master/src/realm/util/file.cpp#L690) if
posix_fallocate
returnsEINVAL
.The text was updated successfully, but these errors were encountered: