Skip to content

Commit

Permalink
Fix typos (then vs than) (#1061)
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Aug 11, 2021
1 parent ed35e0c commit e6c2090
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ psql -f /tmp/scripts/amcheck.sql -v "ON_ERROR_STOP=1" postgres
wal-g --config=${TMP_CONFIG} delete everything FORCE --confirm
/tmp/scripts/drop_pg.sh

# check that we cant make delta from other database then previous backup
# check that we can't make delta from other database than previous backup

# create db
/usr/lib/postgresql/10/bin/initdb ${PGDATA}
Expand Down
2 changes: 1 addition & 1 deletion internal/backup_util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestGetBackupTimeSlices_List(t *testing.T) {

assert.Equalf(t, 1, len(result), "GetBackupTimeSlices returned wrong count of backup: something wrong")
assert.Equalf(t, testStreamBackup.BackupName, result[0].BackupName, "GetBackupTimeSlices returned strange name")
assert.True(t, testStreamBackup.Time.Before(result[0].Time), "GetBackupTimeSlices returned bad time: storage time less then mock time")
assert.True(t, testStreamBackup.Time.Before(result[0].Time), "GetBackupTimeSlices returned bad time: storage time less than mock time")
}

func TestGetBackupTimeSlices_OrderCheck(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/databases/postgres/backup_push_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ func (bh *BackupHandler) HandleBackupPush() {
}

if utility.ResolveSymlink(bh.arguments.pgDataDirectory) != bh.pgInfo.pgDataDirectory {
tracelog.ErrorLogger.Panicf("Data directory read from Postgres (%s) is different then as parsed (%s).",
tracelog.ErrorLogger.Panicf("Data directory read from Postgres (%s) is different than as parsed (%s).",
bh.arguments.pgDataDirectory, bh.pgInfo.pgDataDirectory)
}
bh.checkPgVersionAndPgControl()
Expand Down
2 changes: 1 addition & 1 deletion internal/walparser/xlog_record_header.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type InvalidXLogRecordResourceManagerIDError struct {

func NewInvalidXLogRecordResourceManagerIDError(resourceManagerID uint8) InvalidXLogRecordResourceManagerIDError {
return InvalidXLogRecordResourceManagerIDError{
errors.Errorf("resource manager id is invalid: %v, while it should be less then: %v",
errors.Errorf("resource manager id is invalid: %v, while it should be less than: %v",
resourceManagerID, RmNextFreeID),
}
}
Expand Down
2 changes: 1 addition & 1 deletion utility/utility.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func ResolveSymlink(path string) string {
resolve, err := filepath.EvalSymlinks(path)
if err != nil {
// TODO: Consider descriptive panic here and other checks
// Directory may be absent et c.
// Directory may be absent etc.
return path
}
return resolve
Expand Down

0 comments on commit e6c2090

Please sign in to comment.