Skip to content

Commit

Permalink
[feat] support ttl compact.
Browse files Browse the repository at this point in the history
  • Loading branch information
VCgege authored and patpatbear committed Oct 23, 2024
1 parent 5d12ea2 commit 56aa35c
Show file tree
Hide file tree
Showing 30 changed files with 2,883 additions and 20 deletions.
9 changes: 9 additions & 0 deletions deps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ distclean:
-(cd jemalloc && [ -f Makefile ] && $(MAKE) distclean) > /dev/null || true
-(cd hdr_histogram && $(MAKE) clean) > /dev/null || true
-(cd xredis-gtid && [ -f Makefile ] && $(MAKE) clean) > /dev/null || true
-(cd tdigest && $(MAKE) clean) > /dev/null || true
-(rm -f .make-*)

.PHONY: distclean
Expand All @@ -65,6 +66,14 @@ hdr_histogram: .make-prerequisites

.PHONY: hdr_histogram

TDIGEST_CFLAGS= -I./include -I../../src

tdigest: .make-prerequisites
@printf '%b %b\n' $(MAKECOLOR)MAKE$(ENDCOLOR) $(BINCOLOR)$@$(ENDCOLOR)
cd tdigest && $(MAKE) CFLAGS="$(TDIGEST_CFLAGS)"

.PHONY: tdigest

ifeq ($(uname_S),SunOS)
# Make isinf() available
LUA_CFLAGS= -D__C99FEATURES__=1
Expand Down
2 changes: 1 addition & 1 deletion deps/rocksdb
Submodule rocksdb updated 2 files
+5 −0 db/c.cc
+8 −0 include/rocksdb/c.h
18 changes: 18 additions & 0 deletions deps/tdigest/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
STD=
WARN= -Wall
OPT= -Os

R_CFLAGS= $(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS)
R_LDFLAGS= $(LDFLAGS)
DEBUG= -g

R_CC=$(CC) $(R_CFLAGS)
R_LD=$(CC) $(R_LDFLAGS)

tdigest.o: tdigest.h tdigest.c

.c.o:
$(R_CC) -c $<

clean:
rm -f *.o
Loading

0 comments on commit 56aa35c

Please sign in to comment.