Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typo fixes #33

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/MogileFS/Connection/Poolable.pm
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ sub expired {
return 0;
}

# may be overriden in subclass, called only on errors
# may be overridden in subclass, called only on errors
# The HTTP version of this will fake an HTTP response for LWP compatibility
sub err {
my ($self, $close_reason) = @_;
Expand Down
2 changes: 1 addition & 1 deletion lib/MogileFS/ProcManager.pm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ my %pending_work = (); # 'job' -> [aref of pending work]
$IsChild = 0; # either false if we're the parent, or a MogileFS::Worker object

# keep track of what all child pids are doing, and what jobs are being
# satisifed.
# satisfied.
my %child = (); # pid -> MogileFS::Connection::Worker
my %todie = (); # pid -> 1 (lists pids that we've asked to die)
my %jobs = (); # jobname -> [ min, current ]
Expand Down
4 changes: 2 additions & 2 deletions lib/MogileFS/Store.pm
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ sub new_from_mogdbsetup {
}

# given a root DBI connection, create the named database. succeed
# if it it's made, or already exists. die otherwise.
# if it is made, or already exists. die otherwise.
sub create_db_if_not_exists {
my ($pkg, $rdbh, $dbname) = @_;
$rdbh->do("CREATE DATABASE IF NOT EXISTS $dbname")
Expand Down Expand Up @@ -622,7 +622,7 @@ sub TABLE_class {
# and a class for derived images (scaled down versions, thumbnails, greyscale, etc)
# each domain can setup classes and assign the minimum redundancy level for
# each class. fotobilder will use a 2 or 3 minimum copy redundancy for original
# photos and and a 1 minimum for derived images (which means the sole device
# photos and a 1 minimum for derived images (which means the sole device
# for a derived image can die, bringing devcount to 0 for that file, but
# the application can recreate it from its original)
sub TABLE_file {
Expand Down
2 changes: 1 addition & 1 deletion lib/MogileFS/Store/MySQL.pm
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ sub was_deadlock_error {
my $dbh = $self->dbh;
return 0 unless $dbh->err;
# 1205 is "lock wait timeout", but we should bomb out if we've
# alerady hung for that long.
# already hung for that long.
return 1 if ($dbh->err == 1213);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/MogileFS/Store/Postgres.pm
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ sub dsn_of_root {
sub want_raise_errors { 1 }

# given a root DBI connection, create the named database. succeed
# if it it's made, or already exists. die otherwise.
# if it is made, or already exists. die otherwise.
sub create_db_if_not_exists {
my ($pkg, $rdbh, $dbname) = @_;
if(not $rdbh->do("CREATE DATABASE $dbname TEMPLATE template0 ENCODING 'UTF-8'" )) {
Expand Down