Commit e002ec68 authored by antirez's avatar antirez
Browse files

other shared objects where created in the I/O thread in...

other shared objects where created in the I/O thread in createStringObjectFromLongLong. Fixed as well.
parent cdbea20a
......@@ -35,7 +35,8 @@ robj *createStringObject(char *ptr, size_t len) {
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];
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment