-
Notifications
You must be signed in to change notification settings - Fork 686
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Fixes flakiness in multi_metadata_sync test (#6824)"
This reverts commit 6cfcc37.
- Loading branch information
1 parent
b49cd14
commit 1aea5b1
Showing
42 changed files
with
266 additions
and
1,785 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,26 @@ | ||
citus_top_builddir = ../../../.. | ||
include $(citus_top_builddir)/Makefile.global | ||
ifndef DECODER | ||
DECODER = pgoutput | ||
endif | ||
|
||
MODULE_big = citus_$(DECODER) | ||
citus_subdir = src/backend/distributed/cdc | ||
SRC_DIR = $(citus_abs_top_srcdir)/$(citus_subdir) | ||
|
||
#List of supported based decoders. Add new decoders here. | ||
cdc_base_decoders :=pgoutput wal2json | ||
|
||
all: build-cdc-decoders | ||
|
||
copy-decoder-files-to-build-dir: | ||
$(eval DECODER_BUILD_DIR=build-cdc-$(DECODER)) | ||
mkdir -p $(DECODER_BUILD_DIR) | ||
@for file in $(SRC_DIR)/*.c $(SRC_DIR)/*.h; do \ | ||
if [ -f $$file ]; then \ | ||
if [ -f $(DECODER_BUILD_DIR)/$$(basename $$file) ]; then \ | ||
if ! diff -q $$file $(DECODER_BUILD_DIR)/$$(basename $$file); then \ | ||
cp $$file $(DECODER_BUILD_DIR)/$$(basename $$file); \ | ||
fi \ | ||
else \ | ||
cp $$file $(DECODER_BUILD_DIR)/$$(basename $$file); \ | ||
fi \ | ||
fi \ | ||
done | ||
cp $(SRC_DIR)/Makefile.decoder $(DECODER_BUILD_DIR)/Makefile | ||
|
||
build-cdc-decoders: | ||
$(foreach base_decoder,$(cdc_base_decoders),$(MAKE) DECODER=$(base_decoder) build-cdc-decoder;) | ||
citus_top_builddir = ../../../.. | ||
citus_decoders_dir = $(DESTDIR)$(pkglibdir)/citus_decoders | ||
|
||
install-cdc-decoders: | ||
$(foreach base_decoder,$(cdc_base_decoders),$(MAKE) DECODER=$(base_decoder) -C build-cdc-$(base_decoder) install;) | ||
OBJS += cdc_decoder.o cdc_decoder_utils.o | ||
|
||
clean-cdc-decoders: | ||
$(foreach base_decoder,$(cdc_base_decoders),rm -rf build-cdc-$(base_decoder);) | ||
include $(citus_top_builddir)/Makefile.global | ||
|
||
override CFLAGS += -DDECODER=\"$(DECODER)\" -I$(citus_abs_top_srcdir)/include | ||
override CPPFLAGS += -DDECODER=\"$(DECODER)\" -I$(citus_abs_top_srcdir)/include | ||
|
||
build-cdc-decoder: | ||
$(MAKE) DECODER=$(DECODER) copy-decoder-files-to-build-dir | ||
$(MAKE) DECODER=$(DECODER) -C build-cdc-$(DECODER) | ||
install: install-cdc | ||
|
||
install: install-cdc-decoders | ||
clean: clean-cdc | ||
|
||
clean: clean-cdc-decoders | ||
install-cdc: | ||
mkdir -p '$(citus_decoders_dir)' | ||
$(INSTALL_SHLIB) citus_$(DECODER).so '$(citus_decoders_dir)/$(DECODER).so' | ||
|
||
clean-cdc: | ||
rm -f '$(DESTDIR)$(datadir)/$(datamoduledir)/citus_decoders/$(DECODER).so' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.