summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2015-04-24 00:03:49 -0700
committerdormando <dormando@rydia.net>2015-04-24 00:03:49 -0700
commit369845f086fd1e31481aca656cb9131a883a86a9 (patch)
tree0d0399a89f748e07f99a12d58e19760beae11f2a
parentb43ecd62c3ae190e8e073d4b4c967dea4e094dfb (diff)
downloadmemcached-369845f086fd1e31481aca656cb9131a883a86a9.tar.gz
fix major off by one issue
none of my machines could repro a crash, but it's definitely wrong :/ Very sad.
-rw-r--r--memcached.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/memcached.h b/memcached.h
index 689a6f5..99cf0b5 100644
--- a/memcached.h
+++ b/memcached.h
@@ -77,7 +77,7 @@
/* Slab sizing definitions. */
#define POWER_SMALLEST 1
-#define POWER_LARGEST 255
+#define POWER_LARGEST 256 /* actual cap is 255 */
#define CHUNK_ALIGN_BYTES 8
/* slab class max is a 6-bit number, -1. */
#define MAX_NUMBER_OF_SLAB_CLASSES (63 + 1)