| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | |
| | | |
| | | |
| | | |
| | | | |
- Generated and tweaked a TOC using [doctoc](https://github.com/thlorenz/doctoc)
- (removed generated headers and fixed broken ampersand conversion)
|
|\ \ \ \
| | | | |
| | | | | |
Update min mmap size in godoc
|
| |/ / / |
|
|\ \ \ \
| |/ / /
|/| | | |
Introduce InitialMmapSize to prevent deadlock
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
InitialMmapSize is the initial mmap size of the database in bytes.
Read transaction won't block write transaction if InitialMmapSize
is large enough to handle mmap size.
Copied from https://github.com/boltdb/bolt/pull/432.
|
|\ \ \
| | | |
| | | | |
Update README URLs based on HTTP redirects
|
|/ / / |
|
|\ \ \ |
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- ErrInvalid is returned when a data file is not a Bolt-formatted
database.
- ErrVersionMismatch is returned when the data file was created with a
different version of Bolt.
- ErrChecksum is returned when either meta page checksum does not match.
Also:
- Do not wrap errors from os.Stat, so that a caller could handle os.Stat
errors just like it can handle errors from os.Open that bolt.Open
might return.
- Name tests consistently, following the pattern "TestOpen_*".
- Remove deferred calls to `os.Remove(path)`.
The calls are not only unnecessary, but also in all cases `os.Remove`
returns an error that is ignored. All those calls are meant to remove
a file that was already removed by `tmpfile()`.
- Combine "bad path" tests and use filepath.Join to build the path.
|
|\ \ \
| | | |
| | | | |
README
|
|/ / /
| | |
| | |
| | |
| | | |
Replace reference to the coalescer with a reference to `DB.Batch()`.
Fixes #465.
|
|\ \ \
| | | |
| | | | |
Fix `bolt stats` output
|
| | | | |
|
|\ \ \ \
| |/ / /
|/| | | |
Put backticks around function name in description
|
|/ / / |
|
|\ \ \
| |_|/
|/| | |
Document iterating over buckets
|
| | | |
|
|/ / |
|
|\ \
| | |
| | | |
Add MmapFlags option for MAP_POPULATE (unix)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This adds MmapFlags to DB.Options in case we need syscall.MAP_POPULATE
flag in Linux 2.6.23+ to do the sequential read-ahead, as discussed in [1].
---
[1]: https://github.com/coreos/etcd/issues/3786
|
|\ \ \
| |/ /
|/| | |
Skip empty pages during cursor seek
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This commit fixes an issue where keys are skipped by cursors after
deletions occur in a bucket. This occurred because the cursor seeks
to the leaf page but does not check if it is empty.
Fixes #429, #450
|
|\ \ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | |
| | | |
This commit updates and revises some of the documentation around
Tx.WriteTo() and how O_DIRECT is no longer the default.
|
|/ /
| |
| |
| |
| |
| | |
For in memory workload, it does not make sense to use
o_direct to copy the file. Adding a option to clear out
o_direct and for other future cases.
|
|\ \
| | |
| | | |
updated README.md to fix typo
|
|/ / |
|
|\ \
| | |
| | | |
windows: implement file locking
|
| | | |
|
|\ \ \
| | | |
| | | | |
Lower MaxValue to 2GB
|
|/ / /
| | |
| | |
| | |
| | |
| | | |
This commit changes the maximum value size to 2GB so that tests can
run on 32-bit machines. There's really no reason to write a 2GB+
value to Bolt. It's not terribly efficient for large values.
|
|\ \ \ |
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
bucket: document Put() value must remain valid for the transaction
|
| | | |
| | | |
| | | |
| | | | |
Issue #324
|
|\ \ \ \
| | | | |
| | | | | |
README: Add 'Reading the Source' section
|
|/ / / /
| | | |
| | | |
| | | |
| | | | |
This commit adds a section to help people understand the
source better while reading it.
|
|\ \ \ \
| | | | |
| | | | | |
adding seperate files to compile on IBM Power and Z
|
| | |_|/
| |/| |
| | | |
| | | | |
Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
|
|\ \ \ \
| | | | |
| | | | | |
bucket: document buckets are valid only during the transaction
|
|/ / / /
| | | |
| | | |
| | | | |
Issue #313
|
|\ \ \ \
| | | | |
| | | | | |
README: mention the memory map consumes a lot of address space
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
I have been bitten by this when running a simple application on a
Raspberry Pi 2. It had 3 stores: two 512M stores and one 128M. The
application refused to start the moment the first index grew from 512M
to 1G.
Bolt is really nice but it is easy to overlook this limitation,
especially with the note about supporting stores much larger than
*physical* memory.
|
|\ \ \ \
| | | | |
| | | | | |
In TestBucket_Delete_FreelistOverflow, use Cursor.Delete to remove records.
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | | |
When removing all the keys from the bucket, use Cursor.Delete directly, which
avoids a seek through the bucket to find the element to delete. This knocks
1/5 of the time off my laptop when running this test while not reducing the
amount of overflow pages cleared out of the free list.
|
|\ \ \ \
| |/ / /
|/| | | |
Add example of NextSequence() usage to readme
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
small typos
|
|/ / / |
|
|\ \ \
| |/ /
|/| | |
Add support for arm64
|