Skip to content
This repository was archived by the owner on Apr 20, 2022. It is now read-only.

Commit 4ab3fa0

Browse files
committed
Correct issue causing SDK 2.0 compatability to fail.
Change-Id: I2ca630f5d1a1db1c019f7bac318002e8688d86af Reviewed-on: http://review.couchbase.org/46600 Reviewed-by: Brett Lawson <brett19@gmail.com> Tested-by: Brett Lawson <brett19@gmail.com>
1 parent 5e64d8b commit 4ab3fa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@
129129
/* pecl-memcached requires this bit be set as well */
130130
#define COUCHBASE_COMPRESSION_MCISCOMPRESSED (1<<4)
131131

132-
#define COUCHBASE_GET_COMPRESSION(f) ((f) >> 5)
132+
#define COUCHBASE_GET_COMPRESSION(f) ((f & COUCHBASE_COMPRESSION_MASK) >> 5)
133133
#define COUCHBASE_SET_COMPRESSION(f, c) ((f) = ((f) & ~COUCHBASE_COMPRESSION_MASK) | (c) << 5)
134-
#define COUCHBASE_GET_PRESERVE_ORDER (1<<0)
134+
#define COUCHBASE_GET_PRESERVE_ORDER (1<<0)
135135

136136
#define COUCHBASE_MIN_PERSIST 0
137137
#define COUCHBASE_MAX_PERSIST 4

0 commit comments

Comments
 (0)