diff options
| author | Teodor Sigaev | 2016-04-02 10:47:04 +0000 |
|---|---|---|
| committer | Teodor Sigaev | 2016-04-02 10:47:04 +0000 |
| commit | 80afb62db0f118f70367a357cef0509a11112ebb (patch) | |
| tree | 08d2a437f93f159aaa901996b832eca2da43dbd5 /contrib/bloom/bloom.h | |
| parent | c22650cd6450854e1a75064b698d7dcbb4a8821a (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.h | 6 |
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 { |
