[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: firstname.lastname@example.org
- 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 <email@example.com
> <mailto:firstname.lastname@example.org>> wrote:
> email@example.com <mailto:firstname.lastname@example.org> wrote:
> Full_Name: Dmytro Milinevskyy
> OS: Linux
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (18.104.22.168)
> 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/