summaryrefslogtreecommitdiff
path: root/contrib/bloom/bloom.h
diff options
context:
space:
mode:
authorTeodor Sigaev2016-04-02 10:47:04 +0000
committerTeodor Sigaev2016-04-02 10:47:04 +0000
commit80afb62db0f118f70367a357cef0509a11112ebb (patch)
tree08d2a437f93f159aaa901996b832eca2da43dbd5 /contrib/bloom/bloom.h
parentc22650cd6450854e1a75064b698d7dcbb4a8821a (diff)
Fixes in bloom contrib module
Looking at result of buildfarm member jaguarundi it seems to me that BloomOptions isn't inited sometime, but I don't see yet how it's possible. Nevertheless, check of signature length's is missed, so, add a limit of it. Also add missed GenericXLogAbort() in case of already deleted page in vacuum + minor code refactoring.
Diffstat (limited to 'contrib/bloom/bloom.h')
-rw-r--r--contrib/bloom/bloom.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/bloom/bloom.h b/contrib/bloom/bloom.h
index 63095723c9a..fb0bc07f284 100644
--- a/contrib/bloom/bloom.h
+++ b/contrib/bloom/bloom.h
@@ -63,6 +63,12 @@ typedef BloomPageOpaqueData *BloomPageOpaque;
#define BLOOM_METAPAGE_BLKNO (0)
#define BLOOM_HEAD_BLKNO (1) /* first data page */
+/*
+ * Maximum of bloom signature length in uint16. Actual value
+ * is 512 bytes
+ */
+#define MAX_BLOOM_LENGTH (256)
+
/* Bloom index options */
typedef struct BloomOptions
{