resTable::removeAll() does not reset the item count

Bug #541361 reported by vstark
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
EPICS Base
Fix Released
Medium
Jeff Hill

Bug Description

resTable::removeAll() does not reset the nInUse internal counter.
A call to numEntriesInstalled returns the last number of items in the table after a removeAll().

Additional information:
In resourceLib.h the method removeAll() should do a this->nInUse = 0

Original Mantis Bug: mantis-333
    http://www.aps.anl.gov/epics/mantis/view_bug_page.php?f_id=333

Tags: cas 3.14
Revision history for this message
Jeff Hill (johill-lanl) wrote :

committed a fix.

cvs diff -wb -- resourceLib.h
Index: resourceLib.h
===================================================================
RCS file: /net/phoebus/epicsmgr/cvsroot/epics/base/src/libCom/cxxTemplates/resourceLib.h,v
retrieving revision 1.103.2.4
diff -u -b -w -b -r1.103.2.4 resourceLib.h
--- resourceLib.h 15 Mar 2006 19:02:15 -0000 1.103.2.4
+++ resourceLib.h 4 Mar 2009 21:58:07 -0000
@@ -335,6 +335,7 @@
             destination.add ( *pItem );
         }
     }
+ this->nInUse = 0;
 }

 //

Revision history for this message
Jeff Hill (johill-lanl) wrote :

fixed in R3.14.11

Revision history for this message
Andrew Johnson (anj) wrote :

R3.14.11 released.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.