aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2016-01-11 15:59:14 -0700
committerBen Johnson <benbjohnson@yahoo.com>2016-01-11 15:59:14 -0700
commit02c43da2b0661119d53bb25fedeaaa57c61043a7 (patch)
tree3b5e148939195dce1f3a3d4a119f27a74c902408
parentMerge pull request #482 from gyuho/bolt_db_test_fix (diff)
parent*: fixes minor typos (diff)
downloaddedo-02c43da2b0661119d53bb25fedeaaa57c61043a7.tar.gz
dedo-02c43da2b0661119d53bb25fedeaaa57c61043a7.tar.xz
Merge pull request #481 from gyuho/boltdb_typo
*: fixes minor typos
-rw-r--r--db.go4
-rw-r--r--tx.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/db.go b/db.go
index 911055d..0f1e1bc 100644
--- a/db.go
+++ b/db.go
@@ -26,7 +26,7 @@ const magic uint32 = 0xED0CDAED
// IgnoreNoSync specifies whether the NoSync field of a DB is ignored when
// syncing changes to a file. This is required as some operating systems,
// such as OpenBSD, do not have a unified buffer cache (UBC) and writes
-// must be synchronzied using the msync(2) syscall.
+// must be synchronized using the msync(2) syscall.
const IgnoreNoSync = runtime.GOOS == "openbsd"
// Default values if not set in a DB instance.
@@ -418,7 +418,7 @@ func (db *DB) close() error {
// will cause the calls to block and be serialized until the current write
// transaction finishes.
//
-// Transactions should not be depedent on one another. Opening a read
+// Transactions should not be dependent on one another. Opening a read
// transaction and a write transaction in the same goroutine can cause the
// writer to deadlock because the database periodically needs to re-mmap itself
// as it grows and it cannot do that while a read transaction is open.
diff --git a/tx.go b/tx.go
index 52b68ef..e74d2ca 100644
--- a/tx.go
+++ b/tx.go
@@ -515,7 +515,7 @@ func (tx *Tx) writeMeta() error {
}
// page returns a reference to the page with a given id.
-// If page has been written to then a temporary bufferred page is returned.
+// If page has been written to then a temporary buffered page is returned.
func (tx *Tx) page(id pgid) *page {
// Check the dirty pages first.
if tx.pages != nil {