Commit Graph

15 Commits

Author SHA1 Message Date
87b5143b15 storage: fix missing continue in keyIndex.since
It should continue to skip following operations.

The test from rev14 to rev0 fails if it doesn't call continue and append
all revisions of the same main rev to the list.
2015-09-19 23:01:18 -07:00
158d6e0e03 storage: fix calculating generation in keyIndex.since
It should skip last empty generation when the key is just tombstoned.

The rev15 and rev16 in the test fails if it doesn't skip last empty generation
and find previous generations.
2015-09-19 22:58:45 -07:00
be80d11948 storage: enhance test for keyIndex.Get and keyIndex.Compact
It covers the case that one key is set multiple times in one main
revision now.
2015-09-17 18:26:17 -07:00
7848ac3979 *: add missing license headers 2015-09-15 14:09:01 -07:00
b2f4a5f587 *: fix spelling issues (codespell).
Signed-off-by: Dmitry Smirnov <onlyjob@member.fsf.org>
2015-09-11 10:22:29 +10:00
3723f01b48 storage: add more unit tests for keyIndex 2015-08-26 12:53:30 -07:00
62f7481b19 storage: keyIndex.get returns err when key is tombstoned
Before this commit, it will return wrong create index, mod index.

It lets findGeneration return error when rev is at the gap of two
generations. This leads to the change of compact() code.
2015-08-23 20:59:02 -07:00
3b2fa9f1de storage: fix TestKeyIndexCompact
It fails to pass before.
2015-08-23 17:22:49 -07:00
c09b667d57 *: fix go vet reported issues 2015-08-22 12:19:02 -05:00
6b23a8131f *: test gofmt with -s and fix reported issues 2015-08-21 18:52:16 -07:00
acd7a92f03 storage: reversion -> revision 2015-08-20 08:39:07 -07:00
ccca2b04da storage: save version 2015-06-29 13:15:09 -07:00
4581064060 storage: save created index and modified index 2015-06-26 12:10:26 -07:00
d417b36e5d storage: refactor key_index 2015-05-31 15:24:04 -07:00
32d44aa3b2 storage: initial key index 2015-05-14 17:35:12 -07:00