#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for tcejdb 1.1.4.
+# Generated by GNU Autoconf 2.69 for tcejdb 1.1.5.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
# Identity of this package.
PACKAGE_NAME='tcejdb'
PACKAGE_TARNAME='tcejdb'
-PACKAGE_VERSION='1.1.4'
-PACKAGE_STRING='tcejdb 1.1.4'
+PACKAGE_VERSION='1.1.5'
+PACKAGE_STRING='tcejdb 1.1.5'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures tcejdb 1.1.4 to adapt to many kinds of systems.
+\`configure' configures tcejdb 1.1.5 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of tcejdb 1.1.4:";;
+ short | recursive ) echo "Configuration of tcejdb 1.1.5:";;
esac
cat <<\_ACEOF
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-tcejdb configure 1.1.4
+tcejdb configure 1.1.5
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by tcejdb $as_me 1.1.4, which was
+It was created by tcejdb $as_me 1.1.5, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by tcejdb $as_me 1.1.4, which was
+This file was extended by tcejdb $as_me 1.1.5, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-tcejdb config.status 1.1.4
+tcejdb config.status 1.1.5
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
test -n "$LDFLAGS" && MYLDFLAGS="$LDFLAGS $MYLDFLAGS"
# Package name
-AC_INIT(tcejdb, 1.1.4)
+AC_INIT(tcejdb, 1.1.5)
AC_CANONICAL_HOST
# Package information
bool icase; //ignore case normalization
} _BSONIPATHROWLDR;
+
+/* Maximum number of objects keeped to update deffered indexes */
+#define JBMAXDEFFEREDIDXNUM 512
+
/* context of deffered index updates. See `_updatebsonidx()` */
typedef struct {
bson_oid_t oid;
if (dctx.imap || dctx.rmap) {
TCLISTPUSH(dlist, &dctx, sizeof (dctx));
}
+ //flush deffered indexes if number pending objects greater JBMAXDEFFEREDIDXNUM
+ if (TCLISTNUM(dlist) >= JBMAXDEFFEREDIDXNUM) {
+ for (int i = 0; i < TCLISTNUM(dlist); ++i) {
+ _DEFFEREDIDXCTX *di = TCLISTVALPTR(dlist, i);
+ assert(di);
+ if (di->rmap) {
+ tctdbidxout2(jcoll->tdb, &(di->oid), sizeof (di->oid), di->rmap);
+ tcmapdel(di->rmap);
+ }
+ if (di->imap) {
+ tctdbidxput2(jcoll->tdb, &(di->oid), sizeof (di->oid), di->imap);
+ tcmapdel(di->imap);
+ }
+ }
+ TCLISTTRUNC(dlist, 0);
+ }
} else { //apply index changes immediately
if (rimap && !tctdbidxout2(jcoll->tdb, oid, sizeof (*oid), rimap)) rv = false;
if (imap && !tctdbidxput2(jcoll->tdb, oid, sizeof (*oid), imap)) rv = false;
If successful, the return value is true, else, it is false.
The iterator is used in order to access the key of every record stored in a database. */
EJDB_EXPORT bool tchdbiterinit(TCHDB *hdb);
-EJDB_EXPORT bool tchdbiterinit4(TCHDB *hdb, uint64_t *iter);
+bool tchdbiterinit4(TCHDB *hdb, uint64_t *iter);
/* Get the next key of the iterator of a hash database object.
If successful, the return value is true, else, it is false. False is returned when no record
is to be get out of the iterator. */
EJDB_EXPORT bool tchdbiternext3(TCHDB *hdb, TCXSTR *kxstr, TCXSTR *vxstr);
-EJDB_EXPORT bool tchdbiternext4(TCHDB *hdb, uint64_t *iter, TCXSTR *kxstr, TCXSTR *vxstr);
+bool tchdbiternext4(TCHDB *hdb, uint64_t *iter, TCXSTR *kxstr, TCXSTR *vxstr);
/* Get forward matching keys in a hash database object.
#include <stdio.h>
-#define _TC_VERSION "1.1.4"
+#define _TC_VERSION "1.1.5"
#define _TC_LIBVER 911
#define _TC_FORMATVER "1.0"