[PATCH] CTDB recovery lock improvements

Aurélien Aptel aaptel at suse.com
Tue Jun 14 11:27:36 UTC 2016


On Tue, 14 Jun 2016 09:57:53 +0200 Andreas Schneider <asn at samba.org>
wrote:
> the difference might be that autobuild runs completely in memory, not
> on disk! 
> 
> However we try to avoid adding more sleeps in the source code
> especially so long ones. Autobuilds alread runs 2,5 hours we don't
> need to extend it.

It's an extra 6 seconds but I see what you mean.
 
> So a check (stat()) in a loop with usleep() is preferred.

How can I reliably check that the DOS mode flag has been set with
stat()? Flags can be stored in tdb IIUC.

Before going further, can you confirm the test doesn't flap anymore
with the sleep()?

-- 
Aurélien Aptel / SUSE Labs Samba Team
GPG: 1839 CB5F 9F5B FB9B AA97  8C99 03C8 A49B 521B D5D3
SUSE Linux GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG
Nürnberg)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160614/f31d0e40/attachment.sig>


More information about the samba-technical mailing list