Skip to content

Commit

Permalink
Utility function for code that hasn't been committed yet
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiemccarthy committed Dec 14, 2004
1 parent 3e8185a commit ea82ffd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Slash/DB/MySQL/MySQL.pm
Expand Up @@ -2798,6 +2798,19 @@ sub getDB {

#################################################################

# Utility function to return an array of all the virtual users for
# all the DBs of one specific type.

sub getDBVUsForType {
my($self, $type) = @_;
my $dbs = $self->getDBs();
return map { $dbs->{$_}{virtual_user} }
grep { $dbs->{$_}{type} eq $type }
keys %$dbs;
}

#################################################################

# Writing to the dbs_readerstatus table.

sub createDBReaderStatus {
Expand Down

0 comments on commit ea82ffd

Please sign in to comment.