This is an automated email from the git hooks/post-receive script.
firstyear pushed a commit to branch master
in repository libsds.
commit 9afd57c07657bb8ee63f7dabc587189ff94b7f06
Author: William Brown <firstyear(a)redhat.com>
Date: Fri Feb 17 14:37:50 2017 +1000
Fix freebsd makefile
---
Makefile.am | 3 +++
src/sds/bpt_cow/node.c | 5 +++++
2 files changed, 8 insertions(+)
diff --git a/Makefile.am b/Makefile.am
index 3f66f77..1764cbe 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -116,14 +116,17 @@ test_sds_SOURCES = test/test_sds.c \
test_sds_LDFLAGS = $(ASAN_DEFINES) $(PROFILING_LINKS) $(NSPR_LINKS) $(CMOCKA_LINKS)
test_sds_LDADD = libsds.la
+test_sds_CPPFLAGS = $(AM_CPPFLAGS) $(CMOCKA_INCLUDES)
benchmark_sds_SOURCES = test/benchmark.c
benchmark_sds_LDFLAGS = $(ASAN_DEFINES) $(PROFILING_LINKS) $(NSPR_LINKS) $(CMOCKA_LINKS)
benchmark_sds_LDADD = libsds.la libsdsexternal.la
+benchmark_sds_CPPFLAGS = $(AM_CPPFLAGS) $(CMOCKA_INCLUDES)
benchmark_par_sds_SOURCES = test/benchmark_parwrap.c test/benchmark_par.c
benchmark_par_sds_LDFLAGS = $(ASAN_DEFINES) $(PROFILING_LINKS) $(NSPR_LINKS)
$(CMOCKA_LINKS)
benchmark_par_sds_LDADD = libsds.la libsdsexternal.la
+benchmark_par_sds_CPPFLAGS = $(AM_CPPFLAGS) $(CMOCKA_INCLUDES)
test: test_sds
./test_sds
diff --git a/src/sds/bpt_cow/node.c b/src/sds/bpt_cow/node.c
index 2eb9272..5d7c2a8 100644
--- a/src/sds/bpt_cow/node.c
+++ b/src/sds/bpt_cow/node.c
@@ -240,6 +240,11 @@ sds_bptree_cow_node_update(sds_bptree_transaction *btxn,
sds_bptree_node *node,
btxn->bi->value_free_fn(node->values[index]);
// insert.
node->values[index] = value;
+#ifdef DEBUG
+ if (btxn->bi->offline_checksumming) {
+ sds_bptree_crc32c_update_node(node);
+ }
+#endif
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.