[asterisk-bugs] [Asterisk 0010687]: [patch] count the deltree entries on CLI datadata deltree foo

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Sep 10 12:20:58 CDT 2007


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.digium.com/view.php?id=10687 
====================================================================== 
Reported By:                junky
Assigned To:                qwell
====================================================================== 
Project:                    Asterisk
Issue ID:                   10687
Category:                   Addons/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 82062 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             09-10-2007 08:27 CDT
Last Modified:              09-10-2007 12:20 CDT
====================================================================== 
Summary:                    [patch] count the deltree entries on CLI datadata
deltree foo
Description: 
A customer called me and asked me: 
I did a deltree and im not sure if this delete 17 or 18 entries.
He was complained that when he uses that, he didnt know how many entries
was successfully deleted.

so instead of:
rabbit*CLI> database deltree salut
Database entries removed.

this is now like:
rabbit*CLI> database deltree foo2
2 database entries removed.

In this way, he will know how many entries exactly he has deleted.


Plus, if you tried to deltree a non-exist keytree, you should get
"Database entries do not exist." instead of "Database entries removed.".
that patch also fix this little mistake.
====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 09-10-07 12:20  
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 82154

------------------------------------------------------------------------
r82154 | qwell | 2007-09-10 12:20:57 -0500 (Mon, 10 Sep 2007) | 6 lines

Add a counter to the 'database deltree' CLI command.
Note: this is slightly different than the initial patch, because I felt
 that using res <= 0 would be a change in behavior.

Closes issue http://bugs.digium.com/view.php?id=10687, patch by junky

------------------------------------------------------------------------ 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
09-10-07 12:20  svnbot         Checkin                                      
09-10-07 12:20  svnbot         Note Added: 0070273                          
09-10-07 12:20  svnbot         Status                   new => assigned     
09-10-07 12:20  svnbot         Assigned To               => qwell           
======================================================================




More information about the asterisk-bugs mailing list