perkeep/pkg/index
mpl c81f3147f6 pkg/index: write relevant keys when receiving a delete claim
This change:

1) Checks if the incoming claim is a delete claim with the use
of GetBlobMeta.

2) write the keyDeleted and keyDeletes keys when it's a delete
claim, plus the usual keys when the target is a permanode.

Yet to be done in the next CLs:
1) update the index deletes cache upon reception of a delete claim
2) update most of the search functions so they use deletedAt properly
3) add new keys necessary for GetRecentPermanodes to give a fully
correct result.

I also made indextest.DumpIndex public because it turned to be useful
to debug within pkg/search/ as well.

http://camlistore.org/issue/191

Change-Id: I8d8b9d12a535b8b1de0018b4a0e359241f14d52a
2013-11-19 18:02:12 +01:00
..
indextest pkg/index: write relevant keys when receiving a delete claim 2013-11-19 18:02:12 +01:00
kvfile index: add deletedAt method, and cache for deletion status 2013-11-06 23:34:13 +01:00
mongo index: add deletedAt method, and cache for deletion status 2013-11-06 23:34:13 +01:00
mysql index: add deletedAt method, and cache for deletion status 2013-11-06 23:34:13 +01:00
postgres index: add deletedAt method, and cache for deletion status 2013-11-06 23:34:13 +01:00
sqlindex sqlite: add start of an fd leak test 2013-09-13 11:21:48 +01:00
sqlite index: add deletedAt method, and cache for deletion status 2013-11-06 23:34:13 +01:00
corpus.go In-memory search: include FileInfo. More tests pass. 2013-11-17 19:49:19 -08:00
doc.go
enumstat.go Cleanup: remove BlobHub and time.Duration waits from storage interface 2013-08-21 13:57:28 -07:00
export_test.go
index.go In-memory search: include FileInfo. More tests pass. 2013-11-17 19:49:19 -08:00
index_test.go index: add deletedAt method, and cache for deletion status 2013-11-06 23:34:13 +01:00
interface.go Put claims in memory too for in-memory search. Required index schema version bump. 2013-11-17 16:52:51 -08:00
keys.go pkg/index: write relevant keys when receiving a delete claim 2013-11-19 18:02:12 +01:00
keys_test.go in-memory search: better structure for keeping memory corpus and kv 2013-11-17 09:41:45 -08:00
memindex.go
receive.go pkg/index: write relevant keys when receiving a delete claim 2013-11-19 18:02:12 +01:00
reversetime.go
sniff.go search: more in-memory search work. make tests verify Scan doesn't hit Storage. 2013-11-16 18:50:01 -08:00
util.go