Skip to content

Commit

Permalink
remove --with-histogram-size option
Browse files Browse the repository at this point in the history
histogram size can now be adjusted in my.cnf
  • Loading branch information
tony2001 committed Jun 8, 2016
1 parent e791f97 commit 29e65e1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
17 changes: 0 additions & 17 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -240,23 +240,6 @@ else
fi
dnl }}}

dnl {{{ --with-histogram-size
AC_ARG_WITH(histogram-size,
[AS_HELP_STRING([--with-histogram-size],[specify custom histogram size (default: 512 entries)])
],
[
AC_MSG_CHECKING(custom histogram size)
res=`expr $with_histogram_size + 0`
if test "$?" == "0" -a "$with_histogram_size" == "$res" -a "$with_histogram_size" -gt 0; then
AC_MSG_RESULT([$with_histogram_size])
AC_DEFINE_UNQUOTED([PINBA_HISTOGRAM_SIZE], $with_histogram_size, [custom histogram size])
else
AC_MSG_ERROR([Invalid histogram size value '$with_histogram_size', numeric value expected])
fi
]
)
dnl }}}

dnl {{{ --with-build-string
AC_ARG_WITH(build-string,
[AS_HELP_STRING([--with-build-string],[set custom build information here])
Expand Down
9 changes: 0 additions & 9 deletions src/pinba_limits.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,4 @@
#define PINBA_PER_THREAD_POOL_GROW_SIZE 1024
#define PINBA_TEMP_DICTIONARY_SIZE 1024

#ifndef PINBA_HISTOGRAM_SIZE
# define PINBA_HISTOGRAM_SIZE 512
#endif

#ifdef PINBA_ENGINE_PINBA_HISTOGRAM_SIZE
# undef PINBA_HISTOGRAM_SIZE
# define PINBA_HISTOGRAM_SIZE PINBA_ENGINE_PINBA_HISTOGRAM_SIZE
#endif

#endif

0 comments on commit 29e65e1

Please sign in to comment.