fixed a typo preventing compilation

This commit is contained in:
antirez
2010-07-22 16:18:28 +02:00
parent c9c7ecad96
commit de4aebe9fd

View File

@ -2932,7 +2932,7 @@ static robj *createStringObject(char *ptr, size_t len) {
static robj *createStringObjectFromLongLong(long long value) {
robj *o;
if (value >= 0 && value < REDIS_SHARED_INTEGERS
if (value >= 0 && value < REDIS_SHARED_INTEGERS &&
pthread_equal(pthread_self(),server.mainthread)) {
incrRefCount(shared.integers[value]);
o = shared.integers[value];