[Groonga-commit] pgroonga/pgroonga at edfcb40 [master] Show PGroonga version on init

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Nov 4 16:00:23 JST 2016


Kouhei Sutou	2016-11-04 16:00:23 +0900 (Fri, 04 Nov 2016)

  New Revision: edfcb40d2c4cdedab3b74c0845f30b4562b56baf
  https://github.com/pgroonga/pgroonga/commit/edfcb40d2c4cdedab3b74c0845f30b4562b56baf

  Message:
    Show PGroonga version on init

  Modified files:
    CMakeLists.txt
    Makefile
    src/pgroonga.c

  Modified: CMakeLists.txt (+1 -0)
===================================================================
--- CMakeLists.txt    2016-11-04 15:47:46 +0900 (8473b62)
+++ CMakeLists.txt    2016-11-04 16:00:23 +0900 (14828ed)
@@ -49,6 +49,7 @@ set(PGRN_BUNDLED_MESSAGE_PACK_DIR
   "${CMAKE_CURRENT_SOURCE_DIR}/vendor/groonga/vendor/msgpack-${PGRN_BUNDLED_MESSAGE_PACK_VERSION}")
 
 add_definitions(
+  -DPGRN_VERSION="\"${PGRN_VERSION}\""
   -DPGRN_HAVE_MSGPACK)
 include_directories(
   "${PGRN_POSTGRESQL_DIR}/include/server/port/win32_msvc"

  Modified: Makefile (+1 -0)
===================================================================
--- Makefile    2016-11-04 15:47:46 +0900 (d162197)
+++ Makefile    2016-11-04 16:00:23 +0900 (4fdc9e0)
@@ -26,6 +26,7 @@ SHLIB_LINK = $(shell pkg-config --libs $(PACKAGES)) -lm
 REGRESS = $(shell find sql -name '*.sql' | sed -e 's,\(^sql/\|\.sql$$\),,g')
 REGRESS_OPTS = --load-extension=pgroonga
 
+COPT += -DPGRN_VERSION="\"${EXTENSION_VERSION}\""
 COPT += -Ivendor/xxHash
 ifdef HAVE_MSGPACK
 COPT += -DPGRN_HAVE_MSGPACK

  Modified: src/pgroonga.c (+2 -0)
===================================================================
--- src/pgroonga.c    2016-11-04 15:47:46 +0900 (40591f1)
+++ src/pgroonga.c    2016-11-04 16:00:23 +0900 (59256b9)
@@ -394,6 +394,8 @@ _PG_init(void)
 
 	ctx = &PGrnContext;
 
+	GRN_LOG(ctx, GRN_LOG_NOTICE, "pgroonga: initialize: <%s>", PGRN_VERSION);
+
 	PGrnInitializeBuffers();
 
 	PGrnEnsureDatabase();
-------------- next part --------------
HTML����������������������������...
Descargar 



More information about the Groonga-commit mailing list
Back to archive index