Skip to content

Commit d1ef38a

Browse files
authored
Merge pull request #2410 from ltetak/typos
Fix all kind of typos
2 parents aff0bd8 + 62f944a commit d1ef38a

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

LiteDB/Engine/Engine/Upgrade.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ public static bool Upgrade(string filename, string password = null, Collation co
2525
Collation = collation
2626
};
2727

28-
var backup = FileHelper.GetSufixFile(filename, "-backup", true);
28+
var backup = FileHelper.GetSuffixFile(filename, "-backup", true);
2929

30-
settings.Filename = FileHelper.GetSufixFile(filename, "-temp", true);
30+
settings.Filename = FileHelper.GetSuffixFile(filename, "-temp", true);
3131

3232
var buffer = new byte[PAGE_SIZE * 2];
3333
IFileReader reader;

LiteDB/Engine/Pages/HeaderPage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace LiteDB.Engine
1111
{
1212
/// <summary>
1313
/// Header page represent first page on datafile. Engine contains a single instance of HeaderPage and all changes
14-
/// must be syncornized (using lock).
14+
/// must be synchronized (using lock).
1515
/// </summary>
1616
internal class HeaderPage : BasePage
1717
{

LiteDB/Engine/Services/TransactionMonitor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ private int GetInitialSize()
171171
{
172172
var sum = 0;
173173

174-
// if there is no avaiable pages, reduce all open transactions
174+
// if there is no available pages, reduce all open transactions
175175
foreach (var trans in _transactions.Values)
176176
{
177177
//TODO: revisar estas contas, o reduce tem que fechar 1000

LiteDB/Engine/Services/TransactionService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ public void Commit()
266266
}
267267
}
268268

269-
// dispose all snapshosts
269+
// dispose all snapshots
270270
foreach (var snapshot in _snapshots.Values)
271271
{
272272
snapshot.Dispose();
@@ -291,7 +291,7 @@ public void Rollback()
291291
this.ReturnNewPages();
292292
}
293293

294-
// dispose all snaphosts
294+
// dispose all snapshots
295295
foreach (var snapshot in _snapshots.Values)
296296
{
297297
// but first, if writable, discard changes

LiteDB/Utils/FileHelper.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ internal static class FileHelper
1616
/// <summary>
1717
/// Create a temp filename based on original filename - checks if file exists (if exists, append counter number)
1818
/// </summary>
19-
public static string GetSufixFile(string filename, string suffix = "-temp", bool checkIfExists = true)
19+
public static string GetSuffixFile(string filename, string suffix = "-temp", bool checkIfExists = true)
2020
{
2121
var count = 0;
2222
var temp = Path.Combine(Path.GetDirectoryName(filename),
@@ -37,12 +37,12 @@ public static string GetSufixFile(string filename, string suffix = "-temp", bool
3737
/// <summary>
3838
/// Get LOG file based on data file
3939
/// </summary>
40-
public static string GetLogFile(string filename) => GetSufixFile(filename, "-log", false);
40+
public static string GetLogFile(string filename) => GetSuffixFile(filename, "-log", false);
4141

4242
/// <summary>
4343
/// Get TEMP file based on data file
4444
/// </summary>
45-
public static string GetTempFile(string filename) => GetSufixFile(filename, "-tmp", false);
45+
public static string GetTempFile(string filename) => GetSuffixFile(filename, "-tmp", false);
4646

4747
/// <summary>
4848
/// Test if file are used by any process

0 commit comments

Comments
 (0)