Bug 462630 - fence_scsi: clear key_list after each use
Summary: fence_scsi: clear key_list after each use
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Cluster Suite
Classification: Retired
Component: cman
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Ryan O'Hara
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On: 462628
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-09-17 16:59 UTC by Ryan O'Hara
Modified: 2009-10-12 19:05 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-10-12 19:05:02 UTC
Embargoed:


Attachments (Terms of Use)

Comment 1 Ryan O'Hara 2008-09-17 21:12:43 UTC
Fixed in RHEL4.

Turns out the problem was not that we needed to clear the key_list hash, but that the get_key_list subroutine did not correcntly declare the key_list. Because Perl does dynamic scoping, the undeclared key_list variable was assumed to be global. The result is/was that the key_list hash was never getting updated correctly.

Simple, one line fix.


Note You need to log in before you can comment on or make changes to this bug.