]> git.saurik.com Git - redis.git/commitdiff
minor fix for Solaris boxes
authorantirez <antirez@gmail.com>
Thu, 28 May 2009 16:25:22 +0000 (18:25 +0200)
committerantirez <antirez@gmail.com>
Thu, 28 May 2009 16:25:22 +0000 (18:25 +0200)
pqsort.c
redis.conf

index c49d077ec07ce97e3c0047715e18e68b05aff931..8e2b12483be1f7f33ae9883996cf20c2b312b2cb 100644 (file)
--- a/pqsort.c
+++ b/pqsort.c
@@ -37,6 +37,8 @@
  * SUCH DAMAGE.
  */
 
+#define __P(protos) protos
+
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
 #if 0
index e7b5b9d07dbb5e8b967a42abd03ddaa911861f3c..8a962f4a96cfa50f41284df34b7c07b6d78497a7 100644 (file)
@@ -97,6 +97,13 @@ databases 16
 # If all this fails, Redis will start to reply with errors to commands
 # that will use more memory, like SET, LPUSH, and so on, and will continue
 # to reply to most read-only commands like GET.
+#
+# WARNING: maxmemory can be a good idea mainly if you want to use Redis as a
+# 'state' server or cache, not as a real DB. When Redis is used as a real
+# database the memory usage will grow over the weeks, it will be obvious if
+# it is going to use too much memory in the long run, and you'll have the time
+# to upgrade. With maxmemory after the limit is reached you'll start to get
+# errors for write operations, and this may even lead to DB inconsistency.
 
 # maxmemory <bytes>