Commit graph

268 commits

Author SHA1 Message Date
09f59d1832 Merge pull request #258 from op/metadata-npe
Fix nil pointer panic when meta bucket is missing
2015-05-29 15:35:21 -04:00
Örjan Persson
6f6e14ee52 Fix nil pointer panic when meta bucket is missing
If NewQuadStore was called without first calling InitQuadStore, the
runtime would panic since the meta bucket never was created.
2015-05-29 15:50:38 +02:00
3f022227ce Fix LevelDB deleted-triple iterator stack overflow bug 2015-05-28 15:48:58 -04:00
ben hockey
678c7c843a move cmp to where it's used 2015-05-27 16:50:54 -05:00
kortschak
59aca3a32e graph: remove redundant type 2015-05-06 08:24:45 +09:30
fa9945ed92 Add imports file to root; expansion welcome 2015-04-30 23:22:49 -04:00
Andrew Dunham
b8a214bd94 Initial work at documenting new Go API 2015-04-30 23:02:27 -04:00
0e50027be8 var renames, remove Func, etc 2015-04-30 23:02:27 -04:00
b9ca485321 Late bind the QuadStore and add Except and Tag 2015-04-30 23:02:27 -04:00
4128133675 add Is, Follow, and All to the path API 2015-04-30 23:02:27 -04:00
3dc74329c0 rename to path 2015-04-30 23:02:27 -04:00
287ea63e2d rename to paths 2015-04-30 23:02:27 -04:00
cb2caad603 privatize morphism 2015-04-30 23:02:27 -04:00
7b8b72dc54 unify morphisms and paths 2015-04-30 23:02:26 -04:00
37bf954db6 test via 2015-04-30 23:02:26 -04:00
2bceb9c25f implement reverse v1 2015-04-30 23:02:26 -04:00
5451d07ff5 first run at an api 2015-04-30 23:02:26 -04:00
Andrew Dunham
189961cb8d Remove deprecated ResultTree API 2015-04-28 15:57:35 -07:00
890f1b69f4 unique iterator implementation 2015-04-26 17:45:17 -04:00
c3c5fe50c1 Fix nits 2015-04-25 19:08:20 -04:00
355c8ee6bc generalize Linkage, add relevant comments 2015-04-19 20:07:14 -04:00
6201e709ef Better size reporting 2015-04-19 16:43:15 -04:00
102b3d7ef5 fix NewAnd taking quadstore in tests 2015-04-19 15:18:11 -04:00
b90ba7cd77 don't replace unless strictly better 2015-04-19 14:59:22 -04:00
4e311177f1 cache size checks in mongo backend 2015-04-19 13:43:10 -04:00
5be1df3be3 initial mongo indexed linksto 2015-04-19 13:43:10 -04:00
Andrew Dunham
d91bb5cb3f Fix phrasing in a comment 2015-04-15 16:51:30 -07:00
Andrew Dunham
8abb3807cb Move 'err' to the end of the struct 2015-04-15 16:49:47 -07:00
Andrew Dunham
c9de029225 s/(serr|err2)/_err/g 2015-04-15 16:39:51 -07:00
Andrew Dunham
131f5de7ea Fix a missed review comment 2015-04-15 16:30:01 -07:00
Andrew Dunham
5eed4d9667 Address review comments 2015-04-15 16:28:13 -07:00
Andrew Dunham
430ff507f0 Test for errors in .Contains() and .NextPath() 2015-04-15 15:28:46 -07:00
Andrew Dunham
7de923d40a Remove even more Fatal* calls 2015-04-15 14:14:33 -07:00
Andrew Dunham
1990eba055 Stop calling glog.Fatal* in a bunch of places 2015-04-15 14:07:45 -07:00
Andrew Dunham
cacdb74e41 Handle errors in more places in HasA Iterator 2015-04-15 13:51:46 -07:00
Andrew Dunham
0355b89f54 Don't save non-errors in the memstore iterator
As per the following link, io.EOF is returned to signal "no more items".
Thus, we don't treat this as an error, and don't save it.

https://godoc.org/github.com/cznic/b#Enumerator
2015-04-15 11:46:26 -07:00
Andrew Dunham
52d0b8779a Add an additional static type assertion 2015-04-15 11:17:33 -07:00
Andrew Dunham
33dd596ab4 Remove graph.Err helper function
Since Err() is now a member of the Iterator interface, we don't need
this helper function anymore.
2015-04-15 11:15:55 -07:00
Andrew Dunham
745d4874e6 Fix Err fallout for graph/iterator.LinksTo iterator 2015-04-15 10:58:37 -07:00
Andrew Dunham
accbc6007e Move Err() method to Iterator interface, fix fallout 2015-04-15 10:51:22 -07:00
Andrew Dunham
912b126e92 Fix Err fallout for graph/iterator.Materialize iterator 2015-04-15 10:48:50 -07:00
Andrew Dunham
0148f6ef12 More Close() docs 2015-04-14 22:13:56 -07:00
Andrew Dunham
1b6395ed0a Make Close() method on Iterators return an error 2015-04-14 20:17:31 -07:00
Andrew Dunham
5c9979ec8b Fix Err fallout for graph/gaedatastore iterator 2015-04-14 19:58:39 -07:00
Andrew Dunham
bd2b2b73cf Fix Err fallout for graph/mongo iterator 2015-04-14 19:11:39 -07:00
Andrew Dunham
5efd90a651 Fix Err fallout for graph/leveldb iterators 2015-04-14 19:11:23 -07:00
Andrew Dunham
9cdeb519d7 Fix Err fallout for graph/memstore iterators 2015-04-14 18:56:05 -07:00
Andrew Dunham
3ce9adbc0b Fix Err fallout for graph/bolt iterators 2015-04-14 18:55:48 -07:00
Andrew Dunham
aaa3f27754 Fix Err fallout for graph/iterator.Or iterator 2015-04-14 18:49:02 -07:00
Andrew Dunham
40cbbfcc1b Fix Err fallout for graph/iterator.Comparison iterator 2015-04-14 18:39:08 -07:00