[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [lvm-devel] [PATCH 10/11] Remove redundant init_mirror_in_sync() call in init_lvm().



On Wed, Dec 10, 2008 at 01:11:00PM -0500, Dave Wysochanski wrote:
> _mirror_in_sync is statically initialized to 0 in lvm-globals.c,
> so no need to set it in init_lvm().  Only other callers that may
> set this are later in execution.
 
Can the statics be relied upon if a handle is created, then destroyed
then a new handle created within the same process?

It basically depends if that initial value is relied upon anywhere, or
if later code always sets this before using it.

Alasdair
-- 
agk redhat com


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]