Merge branch 'unstable' into redis_6_merge
Former-commit-id: 208c15bc16aa2a0abf8f8dbcb132316134f0be31
This commit is contained in:
commit
f8f752f2ab
@ -83,6 +83,10 @@ ifneq (,$(findstring armv,$(uname_M)))
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq (,$(findstring armv,$(uname_M)))
|
||||||
|
FINAL_LIBS+=-latomic
|
||||||
|
endif
|
||||||
|
|
||||||
# Backwards compatibility for selecting an allocator
|
# Backwards compatibility for selecting an allocator
|
||||||
ifeq ($(USE_TCMALLOC),yes)
|
ifeq ($(USE_TCMALLOC),yes)
|
||||||
MALLOC=tcmalloc
|
MALLOC=tcmalloc
|
||||||
@ -106,7 +110,7 @@ endif
|
|||||||
FINAL_CFLAGS=$(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS)
|
FINAL_CFLAGS=$(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS)
|
||||||
FINAL_CXXFLAGS=$(CXX_STD) $(WARN) $(OPT) $(DEBUG) $(CXXFLAGS) $(REDIS_CFLAGS)
|
FINAL_CXXFLAGS=$(CXX_STD) $(WARN) $(OPT) $(DEBUG) $(CXXFLAGS) $(REDIS_CFLAGS)
|
||||||
FINAL_LDFLAGS=$(LDFLAGS) $(REDIS_LDFLAGS) $(DEBUG)
|
FINAL_LDFLAGS=$(LDFLAGS) $(REDIS_LDFLAGS) $(DEBUG)
|
||||||
FINAL_LIBS=-lm -lcurl
|
FINAL_LIBS+=-lm -lcurl
|
||||||
DEBUG=-g -ggdb
|
DEBUG=-g -ggdb
|
||||||
|
|
||||||
# Linux ARM needs -latomic at linking time
|
# Linux ARM needs -latomic at linking time
|
||||||
|
@ -358,8 +358,8 @@ void replicationFeedSlaves(list *slaves, int dictid, robj **argv, int argc) {
|
|||||||
char szMvcc[128];
|
char szMvcc[128];
|
||||||
incrementMvccTstamp();
|
incrementMvccTstamp();
|
||||||
uint64_t mvccTstamp = getMvccTstamp();
|
uint64_t mvccTstamp = getMvccTstamp();
|
||||||
int cchMvccNum = snprintf(szMvcc, sizeof(szMvcc), "%lu", mvccTstamp);
|
int cchMvccNum = snprintf(szMvcc, sizeof(szMvcc), "%" PRIu64, mvccTstamp);
|
||||||
int cchMvcc = snprintf(szMvcc, sizeof(szMvcc), "$%d\r\n%lu\r\n", cchMvccNum, mvccTstamp);
|
int cchMvcc = snprintf(szMvcc, sizeof(szMvcc), "$%d\r\n%" PRIu64 "\r\n", cchMvccNum, mvccTstamp);
|
||||||
cchMvcc = std::min<int>(cchMvcc, sizeof(szMvcc)); // tricky snprintf
|
cchMvcc = std::min<int>(cchMvcc, sizeof(szMvcc)); // tricky snprintf
|
||||||
|
|
||||||
/* Write the command to the replication backlog if any. */
|
/* Write the command to the replication backlog if any. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user