[Date Prev][Date Next]
Re: (ITS#8106) Retry pwrite operations in case of EINTR
- To: openldap-its@OpenLDAP.org
- Subject: Re: (ITS#8106) Retry pwrite operations in case of EINTR
- From: email@example.com
- Date: Sat, 18 Apr 2015 03:37:44 +0000
- Auto-submitted: auto-generated (OpenLDAP-ITS)
Dmytro Milinevskyy wrote:
> we've encountered this problem mainly on Android device. The kernel
> sends a fake signal and the baking storage(flash) is not so fast.
> I've noticed a typo in my patch for the macro DO_PWRITE in
> mdb_env_init_meta. The test should be done for EINTR, not EINVAL.
> Do you want me to resend the patch?
Yes I already noticed that, so I wrote the patch myself instead of
Thank you for the context, that's good information.
> On Fri, Apr 17, 2015 at 7:34 PM, Howard Chu <firstname.lastname@example.org
> <mailto:email@example.com>> wrote:
> firstname.lastname@example.org <mailto:email@example.com> wrote:
> Full_Name: Dmytro Milinevskyy
> OS: Linux
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (184.108.40.206)
> On linux systems it's common to have system calls interrupted
> and restarted.
> LMDB should retry pwrites to avoid "false" failures.
> In practice, writes to a file are "fast" and will always write at
> least one byte. But we've patched this as suggested, thanks.
> -- Howard Chu
> CTO, Symas Corp. http://www.symas.com
> Director, Highland Sun http://highlandsun.com/hyc/
> Chief Architect, OpenLDAP http://www.openldap.org/project/
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/