| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | src/dedo.go: Start rewrite and simplification of CLI impl | EuAndreh | 2025-01-24 | 3 | -3/+247 |
| | | |||||
| * | src/dedo.go: Change magic marker to my own | EuAndreh | 2025-01-24 | 1 | -1/+1 |
| | | |||||
| * | src/dedo.go: Remove deprecated Tx.Copy() method | EuAndreh | 2025-01-24 | 2 | -12/+7 |
| | | |||||
| * | src/dedo.go: Simplify initDB() | EuAndreh | 2025-01-23 | 2 | -110/+129 |
| | | |||||
| * | src/dedo.go: Instantiate &DB{} only after opening the file; simplify Open() | EuAndreh | 2024-12-31 | 2 | -43/+59 |
| | | |||||
| * | src/dedo.go: Simplify flags of flock() | EuAndreh | 2024-12-31 | 1 | -9/+2 |
| | | |||||
| * | src/dedo.go: Remove Tx.WriteFlag option | EuAndreh | 2024-12-31 | 1 | -11/+2 |
| | | | | | | | Thrashing is an OS issue, not an application one. The OS should be the one tweaking the page cache to prevent it. If the OS is not doing it by itself, one needs to tweak their system's page cache size and configuration. | ||||
| * | src/dedo.go: remove unused constants and methods | EuAndreh | 2024-12-31 | 1 | -28/+0 |
| | | |||||
| * | src/dedo.go: Remove DB.Info() method | EuAndreh | 2024-12-31 | 2 | -16/+4 |
| | | |||||
| * | src/dedo.go: Remove mode and options from Open() | EuAndreh | 2024-12-30 | 2 | -52/+44 |
| | | |||||
| * | src/dedo.go: Remove Options.InitialMmapSize option | EuAndreh | 2024-12-30 | 2 | -12/+2 |
| | | |||||
| * | src/dedo.go: Remove Bucket.FillPercent option | EuAndreh | 2024-12-30 | 2 | -31/+4 |
| | | |||||
| * | src/dedo.go: Remove DB.MmapFlags option | EuAndreh | 2024-12-30 | 1 | -9/+2 |
| | | |||||
| * | src/dedo.go: Sort imports | EuAndreh | 2024-12-30 | 1 | -12/+13 |
| | | |||||
| * | src/dedo.go: Remove Options.Timeout option | EuAndreh | 2024-12-30 | 1 | -27/+3 |
| | | |||||
| * | src/dedo.go: Remove DB.ReadOnly option | EuAndreh | 2024-12-30 | 2 | -50/+91 |
| | | |||||
| * | src/dedo.go: Move type definitions to the beginning of the file | EuAndreh | 2024-12-30 | 1 | -672/+682 |
| | | |||||
| * | src/dedo.go: Remove DB.NoGrowSync option | EuAndreh | 2024-12-30 | 1 | -14/+1 |
| | | |||||
| * | src/dedo.go: Remove DB.NoSync option | EuAndreh | 2024-12-30 | 2 | -38/+6 |
| | | |||||
| * | tests/dedo.go: Normalize tests | EuAndreh | 2024-12-30 | 2 | -57/+409 |
| | | | | | | | | | | | | - hack extra `os.Remove()` calls to avoid leaving temporary files around; - try using temporary directories that usually live in RAM; - disable broken tests; - stop printing to stdout/stderr; - decrease test constants to make slow tests bearable*. (*): tests are bearable in RAM (~5s) or on SSDs (~10s). HDDs are still too slow for them (~2m). | ||||
| * | rm appveyor.yml | EuAndreh | 2024-11-01 | 1 | -18/+0 |
| | | |||||
| * | Rename "gkv" -> "dedo" | EuAndreh | 2024-10-30 | 9 | -23/+23 |
| | | |||||
| * | .gitignore: Include pattern for cgo | EuAndreh | 2024-10-29 | 1 | -0/+1 |
| | | |||||
| * | mkdeps.sh: Fix typo on varlist name | EuAndreh | 2024-10-29 | 2 | -2/+2 |
| | | |||||
| * | Makefile: Simplify time file generation on bench taget dependencies | EuAndreh | 2024-10-29 | 1 | -2/+1 |
| | | |||||
| * | Makefile: Prioritize local version when building and linking | EuAndreh | 2024-10-29 | 1 | -2/+2 |
| | | |||||
| * | Normalize structure following other projects | EuAndreh | 2024-10-26 | 50 | -12443/+12121 |
| | | |||||
| * | Move code to src/ and tests/ | EuAndreh | 2024-10-25 | 32 | -0/+0 |
| | | |||||
| * | Merge pull request #748 from Chyroc/add/tx-copy-deprecated | Ben Johnson | 2018-03-02 | 1 | -1/+3 |
| |\ | | | | | add tx-copy-deprecated | ||||
| | * | add tx-copy-deprecated | Chyroc | 2018-03-01 | 1 | -1/+3 |
| |/ | |||||
| * | Merge pull request #736 from tv42/silly-if | Ben Johnson | 2017-11-19 | 1 | -3/+1 |
| |\ | | | | | Remove unnecessary if in batch handling | ||||
| | * | Remove unnecessary if in batch handling | Tommi Virtanen | 2017-11-17 | 1 | -3/+1 |
| |/ | | | | | | This is safe, as the only place that creates call values always explicitly sets err. It's a leftover from an earlier iteration of the code. | ||||
| * | README | Ben Johnson | 2017-09-07 | 1 | -0/+19 |
| | | |||||
| * | Merge pull request #703 from nilslice/patch-1 | Ben Johnson | 2017-07-17 | 1 | -0/+1 |
| |\ | | | | | Add Ponzu CMS to list of projects using Bolt | ||||
| | * | Add Ponzu CMS to list of projects using Bolt | Steve Manuel | 2017-07-10 | 1 | -0/+1 |
| |/ | |||||
| * | Merge pull request #654 from benbjohnson/revert-ca9f208 | Ben Johnson | 2017-01-31 | 1 | -17/+7 |
| |\ | | | | | Revert "replace unix implementation to be the same as solaris to fix …" | ||||
| | * | Revert "replace unix implementation to be the same as solaris to fix an ↵ | Ben Johnson | 2017-01-31 | 1 | -17/+7 |
| |/ | | | | | | issue with glusterfs" This reverts commit ca9f2088aab4fc9832e587655f0026875bddbf9b. | ||||
| * | Merge pull request #651 from zweizeichen/master | Ben Johnson | 2017-01-30 | 1 | -3/+3 |
| |\ | | | | | hexidecimal -> hexadecimal | ||||
| | * | hexidecimal -> hexadecimal | Sebastian | 2017-01-28 | 1 | -3/+3 |
| |/ | | | Small spelling fix :) | ||||
| * | Merge pull request #642 from josharian/fix629 | Ben Johnson | 2016-12-28 | 1 | -1/+9 |
| |\ | | | | | Ensure that keys generated by testing/quick are unique | ||||
| | * | Ensure that keys generated by testing/quick are unique | Josh Bleecher Snyder | 2016-12-28 | 1 | -1/+9 |
| |/ | | | | | | | | Quick seed 21691 used to generate duplicate keys, which caused some Puts of values to overwrite other values, causing spurious test failures. Fixes #629. | ||||
| * | Clean up timeout tests. | Ben Johnson | 2016-12-27 | 1 | -161/+0 |
| | | | | | | | The new FCTNL locking does not support multiple locks from the same process which makes those tests fail. The lock tests have been removed. | ||||
| * | Merge pull request #616 from sinwav/idiomatic | Ben Johnson | 2016-12-27 | 2 | -3/+2 |
| |\ | | | | | Fix return statement inside else block at the end of function | ||||
| | * | Fix return statement inside else block at the end of function and gofmt ↵ | nick | 2016-10-31 | 2 | -3/+2 |
| | | | | | | | | | | | | | windows file Signed-off-by: nick <nicholasjamesrusso@gmail.com> | ||||
| * | | Merge pull request #625 from vrecan/FcntlFlock | Ben Johnson | 2016-12-27 | 1 | -7/+17 |
| |\ \ | | | | | | | replace unix implementation to be the same as solaris to fix an issue with glusterfs | ||||
| | * | | replace unix implementation to be the same as solaris to fix an issue with ↵ | Ben Aldrich | 2016-11-16 | 1 | -7/+17 |
| | | | | | | | | | | | | | glusterfs | ||||
| * | | | Merge pull request #628 from bep/patch-1 | Ben Johnson | 2016-12-27 | 1 | -1/+1 |
| |\ \ \ | | | | | | | | | Fix prefix scan example | ||||
| | * | | | Fix prefix scan example | Bjørn Erik Pedersen | 2016-12-06 | 1 | -1/+1 |
| | | | | | | | | | | | | | The example is correct in isolation, but if people just copy the loop, it will go into infinite loop when given an empty byte slice. | ||||
| * | | | | Merge pull request #641 from josharian/cleanup | Ben Johnson | 2016-12-23 | 4 | -17/+16 |
| |\ \ \ \ | | | | | | | | | | | Minor cleanup and bug fixes | ||||
| | * | | | | Allow GC to reclaim completed transactions | Josh Bleecher Snyder | 2016-12-23 | 1 | -1/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The existing append-based implementation left a hanging reference to the last tx. For example, if db.txs was: []*Tx{0x1, 0x2, 0x3, 0x4, 0x5} and we removed the second element, db.txs would now be: []*Tx{0x1, 0x3, 0x4, 0x5, 0x5}[:4] The garbage collector cannot reclaim anything anywhere in a slice, even pointers between its len and cap, because the len can always be extended up to the cap. This hanging reference to the Tx could last indefinitely, and since the Tx has a reference to user-provided functions, which could be closures, this bug could prevent arbitrary amounts of user garbage from being collected. Since db.txs is unordered anyway, switch to a simpler--and O(1) instead of O(n)--implementation. Swap the last element into the spot to be deleted, nil out the original last element, and shrink the slice. | ||||
