Commit Graph

142 Commits

Author SHA1 Message Date
tidwall a41516f180 Fix reload calculation incorrect 2021-03-30 15:36:40 -07:00
tidwall d7ed6a747a Ignore incomplete tail commands and allow for null padding
This commit allows for BuntDB to load data files that were
previously considered invalid or corrupted.

Now when the data file ends with an incomplete command, the data
will be truncated at the end of the previously success command.
Also when a null control character is encountered instead of an
asterix, which indicates the start of a command, the null is
ignored and the cursor moves to the next byte. This allows for
null padding at the head and the tail.

Fixes #71
https://github.com/tidwall/tile38/issues/600
2021-03-29 14:06:22 -07:00
tidwall 4f7ef48197 Upgrade gjson 2021-03-29 14:03:54 -07:00
Josh Baker bc1ef3e3d6
Create FUNDING.yml 2021-03-28 09:01:09 -07:00
tidwall 62d43edfcf Updated rtree dependency 2021-02-07 17:51:10 -07:00
tidwall ca8c0ff5d5 Upgraded dependencies 2021-02-07 17:04:06 -07:00
tidwall c3544a778b Updated Go packages 2021-01-25 14:57:28 -07:00
Josh Baker 001aac9135
Update README.md 2021-01-10 15:57:47 -07:00
Josh Baker 10fbc48357
Update README.md 2021-01-10 15:56:43 -07:00
Josh Baker 4aa8fb12ec
Update README.md 2021-01-10 15:56:13 -07:00
Josh Baker 00c1a6ac45
Update README.md 2021-01-10 15:53:48 -07:00
Josh Baker 7b16b21ea7
Update README.md 2021-01-10 15:45:21 -07:00
tidwall 13599ea482 Added test 2021-01-10 06:54:16 -07:00
Josh Baker dcbe694f9e
Merge pull request #70 from Sora233/master
fix set transaction leak
2021-01-10 06:42:52 -07:00
sora233 6363a756c0 fix set transaction leak 2021-01-10 21:36:17 +08:00
tidwall 8724f51bb5 Update dependencies 2021-01-06 10:50:41 -07:00
tidwall 07278140d9 Fixed expires out of range
This commit fixes an issue where persisting a value with a
negative expires to the AOF causes the database to not load.

fixes #68
2020-12-10 08:54:47 -07:00
Josh Baker 18423895fc
Create go.yml 2020-11-03 10:55:38 -07:00
Josh Baker d47e0a0e7d
Delete .travis.yml 2020-11-03 10:55:27 -07:00
Josh Baker 127e283d3f
Update README.md 2020-11-03 10:55:11 -07:00
tidwall 0b1a2df5f8 Updated dependencies 2020-10-27 08:55:29 -07:00
tidwall df8cd8d232 Updated Btree implementation 2020-10-27 05:44:48 -07:00
tidwall ba891d68e3 Updated Go version 2020-10-27 05:03:22 -07:00
tidwall 14666ffbfc Fix go test output 2020-10-26 16:32:22 -07:00
Josh Baker f413da4ba3
Merge pull request #60 from xmikus01/fix-typos
Fix typos
2020-01-27 08:14:42 -07:00
Petr Mikusek 3c8dd9070b Fix typos 2020-01-26 18:50:22 +01:00
Josh Baker 5a505994ed
Merge pull request #51 from alesvaupotic/master
WriteConfig should be SetConfig
2019-11-15 13:39:57 -07:00
tidwall eeb4b0a11d Remove deprecated warning 2019-11-15 13:27:37 -07:00
tidwall e1e78e6e9f Added Go modules 2019-11-15 13:04:12 -07:00
Aleš Vaupotič 055b17e34e
Merge pull request #1 from alesvaupotic/alesvaupotic-patch-setconfig
WriteConfig should be SetConfig
2019-10-01 19:39:49 +02:00
Aleš Vaupotič 1406b6a193
WriteConfig should be SetConfig
The leading text suggests use of SetConfig but code contains WriteConfig
2019-10-01 19:39:20 +02:00
Josh Baker 6249481c29
Update README.md 2018-05-03 09:43:07 -07:00
Josh Baker 847243a6cf
Fix code formatting 2018-05-03 09:42:12 -07:00
Josh Baker 75d89283d5 Added comment about Nearby dist param
closes #31
2018-04-30 04:50:00 -07:00
Josh Baker 6c62c87570
Update README.md 2018-04-30 04:40:01 -07:00
Josh Baker 5ea07edd0a Merge branch 'master' of https://github.com/quackingduck/buntdb into quackingduck-master 2018-04-30 04:27:06 -07:00
Josh Baker cd4f5a9b05 Merge branch 'dc0d-onexpiredsync-01' 2018-03-15 17:57:49 -07:00
dc0d 9962a94df0 adding OnExpiredSync callback 2018-03-04 12:00:42 +03:30
Josh Baker 2da7c10668
Update README.md 2018-01-12 16:41:09 -07:00
Josh Baker 0a064e7588 Nearby operation (kNN) 2018-01-12 16:38:11 -07:00
Myles Byrne e8211f89e6 Make indentation consistent 2017-11-28 12:07:28 -08:00
Myles Byrne 271124b361 Typo. I think 2017-11-28 11:53:46 -08:00
Myles Byrne 8c7c9dd49c Typo: name -> age 2017-11-28 11:47:27 -08:00
Myles Byrne 210a7b9c1f Whitespace and indentation 2017-11-28 11:44:29 -08:00
Myles Byrne ddd47a11c9 Typo 2017-11-28 11:38:51 -08:00
Myles Byrne a290e7e5a5 Trailing whitespace removed by editor 2017-11-28 11:37:21 -08:00
Josh Baker b67b1b8c16 Added AscendEqual and DescendEqual
AscendEqual and DescendEqual return only the items that equal
a specified value.

Closes #26
2017-08-24 07:40:00 -07:00
Josh Baker 83418750ee markdown formatting fix 2017-03-22 07:35:28 -07:00
Josh Baker a5a570e3c8 markdown formatting fix 2017-03-22 07:35:17 -07:00
Josh Baker 74dc10171b exported Begin/Commit/Rollback, fixes #16 2016-12-02 09:37:38 -07:00