Changeset 6694
- Timestamp:
- 10/02/08 17:30:08 (2 months ago)
- Location:
- trunk/centstorage
- Files:
-
- 20 modified
-
Makefile (modified) (3 diffs)
-
Makefile.am (modified) (2 diffs)
-
Makefile.in (modified) (3 diffs)
-
config.status (modified) (3 diffs)
-
configure (modified) (2 diffs)
-
configure.in (modified) (1 diff)
-
modules/purge/Makefile (modified) (2 diffs)
-
modules/purge/Makefile.in (modified) (2 diffs)
-
modules/rebuild/Makefile (modified) (2 diffs)
-
modules/rebuild/Makefile.in (modified) (2 diffs)
-
modules/recup_perf_datas/Makefile (modified) (7 diffs)
-
modules/recup_perf_datas/Makefile.am (modified) (2 diffs)
-
modules/recup_perf_datas/Makefile.in (modified) (7 diffs)
-
modules/recup_perf_datas/connection.c (modified) (1 diff)
-
modules/recup_perf_datas/insertValInMySQLDataBase.c (modified) (6 diffs)
-
modules/recup_perf_datas/interval.c (modified) (1 diff)
-
modules/rrd/RRDFunctions.c (modified) (1 diff)
-
modules/rrd/interval.c (modified) (7 diffs)
-
modules/sync/Makefile (modified) (3 diffs)
-
modules/sync/Makefile.in (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/centstorage/Makefile
r6664 r6694 57 57 $(srcdir)/Makefile.in $(top_srcdir)/configure \ 58 58 $(top_srcdir)/includes/config.h.in AUTHORS COPYING ChangeLog \ 59 INSTALL NEWS THANKS config.guess config.sub depcomp install-sh\60 missing59 INSTALL NEWS THANKS TODO config.guess config.sub depcomp \ 60 install-sh missing 61 61 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 62 62 am__aclocal_m4_deps = $(top_srcdir)/configure.in … … 208 208 lib/libmd5 \ 209 209 modules \ 210 modules/recup_perf_datas /\211 modules/rebuild /\212 modules/purge /\213 modules/sync /\210 modules/recup_perf_datas \ 211 modules/rebuild \ 212 modules/purge \ 213 modules/sync \ 214 214 modules/recup_perf_datas_client 215 215 216 DIR_MODULES = ./modules217 216 all: all-recursive 218 217 … … 653 652 mv modules/purge/purge.so /usr/local/centreon/lib 654 653 mv modules/rebuild/rebuild.so /usr/local/centreon/lib 655 # mv -f modules/recup_perf_datas/recup_perf_datas.so @MOD_PATH_REC@656 # mv -f modules/rebuild/rebuild.so @MOD_PATH_REB@657 # mv -f modules/purge/purge.so @MOD_PATH_SYNC@658 # mv -f modules/sync/sync.so @MOD_PATH_SYNC@659 654 660 655 re: clean all -
trunk/centstorage/Makefile.am
r6654 r6694 25 25 lib/libmd5 \ 26 26 modules \ 27 @MK_USE_REC@\28 @MK_USE_REB@\29 @MK_USE_PUR@\30 @MK_USE_SYNC@\27 modules/recup_perf_datas \ 28 modules/rebuild \ 29 modules/purge \ 30 modules/sync \ 31 31 modules/recup_perf_datas_client 32 DIR_MODULES = ./modules33 32 34 33 all: all-recursive … … 38 37 @CP_PUR@ 39 38 @CP_REB@ 40 # mv -f modules/recup_perf_datas/recup_perf_datas.so @MOD_PATH_REC@41 # mv -f modules/rebuild/rebuild.so @MOD_PATH_REB@42 # mv -f modules/purge/purge.so @MOD_PATH_SYNC@43 # mv -f modules/sync/sync.so @MOD_PATH_SYNC@44 39 45 40 re: clean all -
trunk/centstorage/Makefile.in
r6655 r6694 57 57 $(srcdir)/Makefile.in $(top_srcdir)/configure \ 58 58 $(top_srcdir)/includes/config.h.in AUTHORS COPYING ChangeLog \ 59 INSTALL NEWS THANKS config.guess config.sub depcomp install-sh\60 missing59 INSTALL NEWS THANKS TODO config.guess config.sub depcomp \ 60 install-sh missing 61 61 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 62 62 am__aclocal_m4_deps = $(top_srcdir)/configure.in … … 208 208 lib/libmd5 \ 209 209 modules \ 210 @MK_USE_REC@\211 @MK_USE_REB@\212 @MK_USE_PUR@\213 @MK_USE_SYNC@\210 modules/recup_perf_datas \ 211 modules/rebuild \ 212 modules/purge \ 213 modules/sync \ 214 214 modules/recup_perf_datas_client 215 215 216 DIR_MODULES = ./modules217 216 all: all-recursive 218 217 … … 653 652 @CP_PUR@ 654 653 @CP_REB@ 655 # mv -f modules/recup_perf_datas/recup_perf_datas.so @MOD_PATH_REC@656 # mv -f modules/rebuild/rebuild.so @MOD_PATH_REB@657 # mv -f modules/purge/purge.so @MOD_PATH_SYNC@658 # mv -f modules/sync/sync.so @MOD_PATH_SYNC@659 654 660 655 re: clean all -
trunk/centstorage/config.status
r6664 r6694 336 336 config.status 337 337 configured by ./configure, generated by GNU Autoconf 2.61, 338 with options \" '--enable-oracle=no' '--enable-pgsql=no'\"338 with options \"\" 339 339 340 340 Copyright (C) 2006 Free Software Foundation, Inc. … … 411 411 412 412 if $ac_cs_recheck; then 413 echo "running CONFIG_SHELL=/bin/sh /bin/sh ./configure " '--enable-oracle=no' '--enable-pgsql=no'$ac_configure_extra_args " --no-create --no-recursion" >&6413 echo "running CONFIG_SHELL=/bin/sh /bin/sh ./configure " $ac_configure_extra_args " --no-create --no-recursion" >&6 414 414 CONFIG_SHELL=/bin/sh 415 415 export CONFIG_SHELL 416 exec /bin/sh "./configure" '--enable-oracle=no' '--enable-pgsql=no'$ac_configure_extra_args --no-create --no-recursion416 exec /bin/sh "./configure" $ac_configure_extra_args --no-create --no-recursion 417 417 fi 418 418 … … 442 442 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 443 443 "lib/libmd5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libmd5/Makefile" ;; 444 " $USE_REC") CONFIG_FILES="$CONFIG_FILES $USE_REC" ;;445 " $USE_REB") CONFIG_FILES="$CONFIG_FILES $USE_REB" ;;446 " $USE_SYNC") CONFIG_FILES="$CONFIG_FILES $USE_SYNC" ;;447 " $USE_PUR") CONFIG_FILES="$CONFIG_FILES $USE_PUR" ;;444 "modules/recup_perf_datas/Makefile") CONFIG_FILES="$CONFIG_FILES modules/recup_perf_datas/Makefile" ;; 445 "modules/rebuild/Makefile") CONFIG_FILES="$CONFIG_FILES modules/rebuild/Makefile" ;; 446 "modules/sync/Makefile") CONFIG_FILES="$CONFIG_FILES modules/sync/Makefile" ;; 447 "modules/purge/Makefile") CONFIG_FILES="$CONFIG_FILES modules/purge/Makefile" ;; 448 448 "modules/recup_perf_datas_client/Makefile") CONFIG_FILES="$CONFIG_FILES modules/recup_perf_datas_client/Makefile" ;; 449 449 -
trunk/centstorage/configure
r6664 r6694 6648 6648 6649 6649 6650 ac_config_files="$ac_config_files Makefile modules/Makefile src/Makefile lib/libmd5/Makefile $USE_REC $USE_REB $USE_SYNC $USE_PURmodules/recup_perf_datas_client/Makefile"6650 ac_config_files="$ac_config_files Makefile modules/Makefile src/Makefile lib/libmd5/Makefile modules/recup_perf_datas/Makefile modules/rebuild/Makefile modules/sync/Makefile modules/purge/Makefile modules/recup_perf_datas_client/Makefile" 6651 6651 6652 6652 … … 7161 7161 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 7162 7162 "lib/libmd5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libmd5/Makefile" ;; 7163 " $USE_REC") CONFIG_FILES="$CONFIG_FILES $USE_REC" ;;7164 " $USE_REB") CONFIG_FILES="$CONFIG_FILES $USE_REB" ;;7165 " $USE_SYNC") CONFIG_FILES="$CONFIG_FILES $USE_SYNC" ;;7166 " $USE_PUR") CONFIG_FILES="$CONFIG_FILES $USE_PUR" ;;7163 "modules/recup_perf_datas/Makefile") CONFIG_FILES="$CONFIG_FILES modules/recup_perf_datas/Makefile" ;; 7164 "modules/rebuild/Makefile") CONFIG_FILES="$CONFIG_FILES modules/rebuild/Makefile" ;; 7165 "modules/sync/Makefile") CONFIG_FILES="$CONFIG_FILES modules/sync/Makefile" ;; 7166 "modules/purge/Makefile") CONFIG_FILES="$CONFIG_FILES modules/purge/Makefile" ;; 7167 7167 "modules/recup_perf_datas_client/Makefile") CONFIG_FILES="$CONFIG_FILES modules/recup_perf_datas_client/Makefile" ;; 7168 7168 -
trunk/centstorage/configure.in
r6664 r6694 628 628 src/Makefile \ 629 629 lib/libmd5/Makefile \ 630 $USE_REC\631 $USE_REB\632 $USE_SYNC\633 $USE_PUR\630 modules/recup_perf_datas/Makefile \ 631 modules/rebuild/Makefile \ 632 modules/sync/Makefile \ 633 modules/purge/Makefile \ 634 634 modules/recup_perf_datas_client/Makefile) 635 635 -
trunk/centstorage/modules/purge/Makefile
r6664 r6694 98 98 CPP = gcc -E 99 99 CPPFLAGS = 100 CP_BIN = cp src/centstorage /usr/local/centreon/bin/ 101 CP_PUR = mv modules/purge/purge.so /usr/local/centreon/lib 102 CP_REB = mv modules/rebuild/rebuild.so /usr/local/centreon/lib 103 CP_REC = mv modules/recup_perf_datas/recup_perf_datas.so /usr/local/centreon/lib 104 CP_SYNC = mv modules/sync/sync.so /usr/local/centreon/lib 100 105 CYGPATH_W = echo 101 106 DBLDFLAGS = -L/usr/lib/mysql … … 121 126 MAKEINFO = ${SHELL} /root/censtsorage/missing --run makeinfo 122 127 MKDIR_P = /bin/mkdir -p 128 MK_USE_PUR = modules/purge/ 129 MK_USE_REB = modules/rebuild/ 130 MK_USE_REC = modules/recup_perf_datas/ 131 MK_USE_SYNC = modules/sync/ 123 132 MOD_CFLAGS = -fPIC 124 133 MOD_LDFLAGS = -shared 125 MOD_PATH = @MOD_PATH@126 134 OBJEXT = o 127 135 PACKAGE = centstorage -
trunk/centstorage/modules/purge/Makefile.in
r6655 r6694 98 98 CPP = @CPP@ 99 99 CPPFLAGS = @CPPFLAGS@ 100 CP_BIN = @CP_BIN@ 101 CP_PUR = @CP_PUR@ 102 CP_REB = @CP_REB@ 103 CP_REC = @CP_REC@ 104 CP_SYNC = @CP_SYNC@ 100 105 CYGPATH_W = @CYGPATH_W@ 101 106 DBLDFLAGS = @DBLDFLAGS@ … … 121 126 MAKEINFO = @MAKEINFO@ 122 127 MKDIR_P = @MKDIR_P@ 128 MK_USE_PUR = @MK_USE_PUR@ 129 MK_USE_REB = @MK_USE_REB@ 130 MK_USE_REC = @MK_USE_REC@ 131 MK_USE_SYNC = @MK_USE_SYNC@ 123 132 MOD_CFLAGS = @MOD_CFLAGS@ 124 133 MOD_LDFLAGS = @MOD_LDFLAGS@ 125 MOD_PATH = @MOD_PATH@126 134 OBJEXT = @OBJEXT@ 127 135 PACKAGE = @PACKAGE@ -
trunk/centstorage/modules/rebuild/Makefile
r6664 r6694 100 100 CPP = gcc -E 101 101 CPPFLAGS = 102 CP_BIN = cp src/centstorage /usr/local/centreon/bin/ 103 CP_PUR = mv modules/purge/purge.so /usr/local/centreon/lib 104 CP_REB = mv modules/rebuild/rebuild.so /usr/local/centreon/lib 105 CP_REC = mv modules/recup_perf_datas/recup_perf_datas.so /usr/local/centreon/lib 106 CP_SYNC = mv modules/sync/sync.so /usr/local/centreon/lib 102 107 CYGPATH_W = echo 103 108 DBLDFLAGS = -L/usr/lib/mysql … … 123 128 MAKEINFO = ${SHELL} /root/censtsorage/missing --run makeinfo 124 129 MKDIR_P = /bin/mkdir -p 130 MK_USE_PUR = modules/purge/ 131 MK_USE_REB = modules/rebuild/ 132 MK_USE_REC = modules/recup_perf_datas/ 133 MK_USE_SYNC = modules/sync/ 125 134 MOD_CFLAGS = -fPIC 126 135 MOD_LDFLAGS = -shared 127 MOD_PATH = @MOD_PATH@128 136 OBJEXT = o 129 137 PACKAGE = centstorage -
trunk/centstorage/modules/rebuild/Makefile.in
r6655 r6694 100 100 CPP = @CPP@ 101 101 CPPFLAGS = @CPPFLAGS@ 102 CP_BIN = @CP_BIN@ 103 CP_PUR = @CP_PUR@ 104 CP_REB = @CP_REB@ 105 CP_REC = @CP_REC@ 106 CP_SYNC = @CP_SYNC@ 102 107 CYGPATH_W = @CYGPATH_W@ 103 108 DBLDFLAGS = @DBLDFLAGS@ … … 123 128 MAKEINFO = @MAKEINFO@ 124 129 MKDIR_P = @MKDIR_P@ 130 MK_USE_PUR = @MK_USE_PUR@ 131 MK_USE_REB = @MK_USE_REB@ 132 MK_USE_REC = @MK_USE_REC@ 133 MK_USE_SYNC = @MK_USE_SYNC@ 125 134 MOD_CFLAGS = @MOD_CFLAGS@ 126 135 MOD_LDFLAGS = @MOD_LDFLAGS@ 127 MOD_PATH = @MOD_PATH@128 136 OBJEXT = @OBJEXT@ 129 137 PACKAGE = @PACKAGE@ -
trunk/centstorage/modules/recup_perf_datas/Makefile
r6664 r6694 70 70 recup_perf_datas_so-recup_perf_datas.$(OBJEXT) \ 71 71 recup_perf_datas_so-connection.$(OBJEXT) \ 72 recup_perf_datas_so-meta.$(OBJEXT) \ 72 73 recup_perf_datas_so-client.$(OBJEXT) \ 73 74 recup_perf_datas_so-connection_SSL.$(OBJEXT) \ … … 111 112 CPP = gcc -E 112 113 CPPFLAGS = 114 CP_BIN = cp src/centstorage /usr/local/centreon/bin/ 115 CP_PUR = mv modules/purge/purge.so /usr/local/centreon/lib 116 CP_REB = mv modules/rebuild/rebuild.so /usr/local/centreon/lib 117 CP_REC = mv modules/recup_perf_datas/recup_perf_datas.so /usr/local/centreon/lib 118 CP_SYNC = mv modules/sync/sync.so /usr/local/centreon/lib 113 119 CYGPATH_W = echo 114 120 DBLDFLAGS = -L/usr/lib/mysql … … 134 140 MAKEINFO = ${SHELL} /root/censtsorage/missing --run makeinfo 135 141 MKDIR_P = /bin/mkdir -p 142 MK_USE_PUR = modules/purge/ 143 MK_USE_REB = modules/rebuild/ 144 MK_USE_REC = modules/recup_perf_datas/ 145 MK_USE_SYNC = modules/sync/ 136 146 MOD_CFLAGS = -fPIC 137 147 MOD_LDFLAGS = -shared 138 MOD_PATH = @MOD_PATH@139 148 OBJEXT = o 140 149 PACKAGE = centstorage … … 208 217 recup_perf_datas.c \ 209 218 connection.c \ 219 meta.c \ 210 220 client.c \ 211 221 connection_SSL.c \ … … 224 234 parseDatas.h \ 225 235 recup_perf_datas.h \ 236 meta.h \ 226 237 connection.h \ 227 238 client.h \ … … 322 333 include ./$(DEPDIR)/recup_perf_datas_so-interval.Po 323 334 include ./$(DEPDIR)/recup_perf_datas_so-longToStr.Po 335 include ./$(DEPDIR)/recup_perf_datas_so-meta.Po 324 336 include ./$(DEPDIR)/recup_perf_datas_so-parseDatas.Po 325 337 include ./$(DEPDIR)/recup_perf_datas_so-recup_perf_datas.Po … … 367 379 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 368 380 # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(recup_perf_datas_so_CFLAGS) $(CFLAGS) -c -o recup_perf_datas_so-connection.obj `if test -f 'connection.c'; then $(CYGPATH_W) 'connection.c'; else $(CYGPATH_W) '$(srcdir)/connection.c'; fi` 381 382 recup_perf_datas_so-meta.o: meta.c 383 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(recup_perf_datas_so_CFLAGS) $(CFLAGS) -MT recup_perf_datas_so-meta.o -MD -MP -MF $(DEPDIR)/recup_perf_datas_so-meta.Tpo -c -o recup_perf_datas_so-meta.o `test -f 'meta.c' || echo '$(srcdir)/'`meta.c 384 mv -f $(DEPDIR)/recup_perf_datas_so-meta.Tpo $(DEPDIR)/recup_perf_datas_so-meta.Po 385 # source='meta.c' object='recup_perf_datas_so-meta.o' libtool=no \ 386 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 387 # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(recup_perf_datas_so_CFLAGS) $(CFLAGS) -c -o recup_perf_datas_so-meta.o `test -f 'meta.c' || echo '$(srcdir)/'`meta.c 388 389 recup_perf_datas_so-meta.obj: meta.c 390 $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(recup_perf_datas_so_CFLAGS) $(CFLAGS) -MT recup_perf_datas_so-meta.obj -MD -MP -MF $(DEPDIR)/recup_perf_datas_so-meta.Tpo -c -o recup_perf_datas_so-meta.obj `if test -f 'meta.c'; then $(CYGPATH_W) 'meta.c'; else $(CYGPATH_W) '$(srcdir)/meta.c'; fi` 391 mv -f $(DEPDIR)/recup_perf_datas_so-meta.Tpo $(DEPDIR)/recup_perf_datas_so-meta.Po 392 # source='meta.c' object='recup_perf_datas_so-meta.obj' libtool=no \ 393 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 394 # $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(recup_perf_datas_so_CFLAGS) $(CFLAGS) -c -o recup_perf_datas_so-meta.obj `if test -f 'meta.c'; then $(CYGPATH_W) 'meta.c'; else $(CYGPATH_W) '$(srcdir)/meta.c'; fi` 369 395 370 396 recup_perf_datas_so-client.o: client.c -
trunk/centstorage/modules/recup_perf_datas/Makefile.am
r6627 r6694 31 31 recup_perf_datas.c \ 32 32 connection.c \ 33 meta.c \ 33 34 client.c \ 34 35 connection_SSL.c \ … … 47 48 parseDatas.h \ 48 49 recup_perf_datas.h \ 50 meta.h \ 49 51 connection.h \ 50 52 client.h \ -
trunk/centstorage/modules/recup_perf_datas/Makefile.in
r6655 r6694 70 70 recup_perf_datas_so-recup_perf_datas.$(OBJEXT) \ 71 71 recup_perf_datas_so-connection.$(OBJEXT) \ 72 recup_perf_datas_so-meta.$(OBJEXT) \ 72 73 recup_perf_datas_so-client.$(OBJEXT) \ 73 74 recup_perf_datas_so-connection_SSL.$(OBJEXT) \ … … 111 112 CPP = @CPP@ 112 113 CPPFLAGS = @CPPFLAGS@ 114 CP_BIN = @CP_BIN@ 115 CP_PUR = @CP_PUR@ 116 CP_REB = @CP_REB@ 117 CP_REC = @CP_REC@ 118 CP_SYNC = @CP_SYNC@ 113 119 CYGPATH_W = @CYGPATH_W@ 114 120 DBLDFLAGS = @DBLDFLAGS@ … … 134 140 MAKEINFO = @MAKEINFO@ 135 141 MKDIR_P = @MKDIR_P@ 142 MK_USE_PUR = @MK_USE_PUR@ 143 MK_USE_REB = @MK_USE_REB@ 144 MK_USE_REC = @MK_USE_REC@ 145 MK_USE_SYNC = @MK_USE_SYNC@ 136 146 MOD_CFLAGS = @MOD_CFLAGS@ 137 147 MOD_LDFLAGS = @MOD_LDFLAGS@ 138 MOD_PATH = @MOD_PATH@139 148 OBJEXT = @OBJEXT@ 140 149 PACKAGE = @PACKAGE@ … … 208 217 recup_perf_datas.c \ 209 218 connection.c \ 219 meta.c \ 210 220 client.c \ 211 221 connection_SSL.c \ … … 224 234 parseDatas.h \ 225 235 recup_perf_datas.h \ 236 meta.h \ 226 237 connection.h \ 227 238 client.h \ … … 322 333 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/recup_perf_datas_so-interval.Po@am__quote@ 323 334 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/recup_perf_datas_so-longToStr.Po@am__quote@ 335 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/recup_perf_datas_so-meta.Po@am__quote@ 324 336 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/recup_perf_datas_so-parseDatas.Po@am__quote@ 325 337 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/recup_perf_datas_so-recup_perf_datas.Po@am__quote@ … … 367 379 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 368 380 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(recup_perf_datas_so_CFLAGS) $(CFLAGS) -c -o recup_perf_datas_so-connection.obj `if test -f 'connection.c'; then $(CYGPATH_W) 'connection.c'; else $(CYGPATH_W) '$(srcdir)/connection.c'; fi` 381 382 recup_perf_datas_so-meta.o: meta.c 383 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(recup_perf_datas_so_CFLAGS) $(CFLAGS) -MT recup_perf_datas_so-meta.o -MD -MP -MF $(DEPDIR)/recup_perf_datas_so-meta.Tpo -c -o recup_perf_datas_so-meta.o `test -f 'meta.c' || echo '$(srcdir)/'`meta.c 384 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/recup_perf_datas_so-meta.Tpo $(DEPDIR)/recup_perf_datas_so-meta.Po 385 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='meta.c' object='recup_perf_datas_so-meta.o' libtool=no @AMDEPBACKSLASH@ 386 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 387 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(recup_perf_datas_so_CFLAGS) $(CFLAGS) -c -o recup_perf_datas_so-meta.o `test -f 'meta.c' || echo '$(srcdir)/'`meta.c 388 389 recup_perf_datas_so-meta.obj: meta.c 390 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(recup_perf_datas_so_CFLAGS) $(CFLAGS) -MT recup_perf_datas_so-meta.obj -MD -MP -MF $(DEPDIR)/recup_perf_datas_so-meta.Tpo -c -o recup_perf_datas_so-meta.obj `if test -f 'meta.c'; then $(CYGPATH_W) 'meta.c'; else $(CYGPATH_W) '$(srcdir)/meta.c'; fi` 391 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/recup_perf_datas_so-meta.Tpo $(DEPDIR)/recup_perf_datas_so-meta.Po 392 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='meta.c' object='recup_perf_datas_so-meta.obj' libtool=no @AMDEPBACKSLASH@ 393 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 394 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(recup_perf_datas_so_CFLAGS) $(CFLAGS) -c -o recup_perf_datas_so-meta.obj `if test -f 'meta.c'; then $(CYGPATH_W) 'meta.c'; else $(CYGPATH_W) '$(srcdir)/meta.c'; fi` 369 395 370 396 recup_perf_datas_so-client.o: client.c -
trunk/centstorage/modules/recup_perf_datas/connection.c
r6664 r6694 68 68 #endif 69 69 70 # undef__DEBUG__70 #define __DEBUG__ 71 71 72 72 /* -
trunk/centstorage/modules/recup_perf_datas/insertValInMySQLDataBase.c
r6664 r6694 67 67 #include "../db_functions/db_connection.h" 68 68 #include "../db_functions/execQuerys.h" 69 70 #include <meta.h> 69 71 #include <str_replace.h> 70 72 #include <longToStr.h> … … 124 126 { 125 127 LOCK_MUTEX(&mutex); 126 127 128 db_connection = (void *)db_connect(log, confModule->timeRetry, MOD_NAME, 128 129 conf->perfBase); … … 137 138 138 139 mysql = (MYSQL *)db_connection; 139 140 140 host = str_replace(structdatas->host, modif); 141 141 if (!host) 142 142 return mysql; 143 144 143 svce = str_replace(structdatas->svce, modif); 145 144 if (!svce) … … 149 148 } 150 149 151 /* building request to find id from index_data */ 152 BUILD_REQUEST(REQ_SELECT_ID, request, host, svce); 153 154 /* execute request */ 155 if ((result = returnsQueryResult(mysql, request, MOD_NAME, 156 !serverFailure && log, type, ERROR_SELECT)) 157 == NULL) 158 { 159 serverFailure = 1; 160 LOCK_MUTEX(&mutex); 161 mysql = checkMySQLError(mysql_errno(mysql), mysql, log, MOD_NAME, conf->perfBase); 162 UNLOCK_MUTEX(&mutex); 163 return mysql; 164 } 165 166 /* ...and find the id */ 167 count = 0; 168 while ((row = mysql_fetch_row(result)) != NULL) 169 { 170 index_id = atoi(row[0]); 171 indexSave = index_id; 172 count++; 173 } 174 mysql_free_result(result); 175 150 if (!strncmp( "meta_", svce, 5)) 151 { 152 index_id = insertMetaIndexDataMySQL(svce, &mysql, &rped_conf_db_connection, 153 log, confModule->timeRetry); 154 if (!index_id) 155 { 156 if (mysql) 157 sprintf(client->cmd, "OK%d\n", client->nb_lines); 158 return mysql; 159 } 160 else 161 { 162 indexSave = index_id; 163 count = 1; 164 } 165 } 166 else 167 { 168 /* building request to find id from index_data */ 169 BUILD_REQUEST(REQ_SELECT_ID, request, host, svce); 170 171 /* execute request */ 172 if ((result = returnsQueryResult(mysql, request, MOD_NAME, 173 !serverFailure && log, type, ERROR_SELECT)) 174 == NULL) 175 { 176 serverFailure = 1; 177 LOCK_MUTEX(&mutex); 178 mysql = checkMySQLError(mysql_errno(mysql), mysql, log, MOD_NAME, conf->perfBase); 179 UNLOCK_MUTEX(&mutex); 180 return mysql; <
