[dovecot/core] 0531c4: lib-fts: fixup misuse of hash_table_insert()

GitHub noreply at github.com
Fri Jun 3 13:30:12 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: 0531c4817898a164fea7522ac73782da99b313ef
      https://github.com/dovecot/core/commit/0531c4817898a164fea7522ac73782da99b313ef
  Author: Baofeng Wang <baofeng.wang at dovecot.fi>
  Date:   2016-06-03 (Fri, 03 Jun 2016)

  Changed paths:
    M src/lib-fts/fts-filter-stopwords.c

  Log Message:
  -----------
  lib-fts: fixup misuse of hash_table_insert()

Instead use hash_table_update() to replace value when a key exsists.


  Commit: 3b22ecd866f2503b48dc998323d183041d7a1f84
      https://github.com/dovecot/core/commit/3b22ecd866f2503b48dc998323d183041d7a1f84
  Author: Baofeng Wang <baofeng.wang at dovecot.fi>
  Date:   2016-06-03 (Fri, 03 Jun 2016)

  Changed paths:
    M src/lib/hash.c
    M src/lib/hash.h

  Log Message:
  -----------
  hash: refactor hash_table_insert_node() and its callers reference

Refactor *changes* the behavior of hash_table_insert().
* hash_table_insert() will assert when a key already exsists.
And hash_table_update() remains updating value when a key already exsists.

Refactor also changes the argument list referred by all its callers:
* hash_table_insert/update/resize().


  Commit: cbc8f9d71483a2cf71610f7e7e1f2dc9884bd556
      https://github.com/dovecot/core/commit/cbc8f9d71483a2cf71610f7e7e1f2dc9884bd556
  Author: Baofeng Wang <baofeng.wang at dovecot.fi>
  Date:   2016-06-03 (Fri, 03 Jun 2016)

  Changed paths:
    M src/lib-storage/mail-search.h
    M src/plugins/fts-lucene/lucene-wrapper.cc
    M src/plugins/fts-solr/fts-backend-solr-old.c
    M src/plugins/fts-solr/fts-backend-solr.c
    M src/plugins/fts/fts-api.c
    M src/plugins/fts/fts-storage.c

  Log Message:
  -----------
  lib-storage: add no_fts in struct mail_search_arg

When flag is set, FTS will not be performed.

fts plugin: handle no_fts flag

No fts will be performed once flag is set.
Original patch from Timo Sirainen <timo.sirainen at dovecot.fi>


Compare: https://github.com/dovecot/core/compare/aa41b2e17912...cbc8f9d71483


More information about the dovecot-cvs mailing list