OSDN Git Service
(root)
/
pgbigm
/
pg_bigm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88d712a
)
Remove incorrect assertion.
author
MasaoFujii
<masao.fujii@gmail.com>
Sun, 6 Oct 2013 16:56:35 +0000
(
01:56
+0900)
committer
MasaoFujii
<masao.fujii@gmail.com>
Sun, 6 Oct 2013 16:56:35 +0000
(
01:56
+0900)
bigm_gin.c
patch
|
blob
|
history
diff --git
a/bigm_gin.c
b/bigm_gin.c
index
da6d9dc
..
26440d5
100644
(file)
--- a/
bigm_gin.c
+++ b/
bigm_gin.c
@@
-199,8
+199,6
@@
gin_bigm_consistent(PG_FUNCTION_ARGS)
int32 i;
int32 ntrue;
- Assert(nkeys > 0);
-
/*
* Don't recheck the heap tuple against the query if either
* pg_bigm.enable_recheck is disabled or the search word is
@@
-208,7
+206,7
@@
gin_bigm_consistent(PG_FUNCTION_ARGS)
* result.
*/
*recheck = bigm_enable_recheck &&
- (
(nkeys > 1) || *((bool *) extra_data
));
+ (
*((bool *) extra_data) || (nkeys != 1
));
switch (strategy)
{