- /* enable commit if state is 1 */
- server_info.records = rec_open (0);
- if (!(server_info.wordDict = dict_open (FNAME_WORD_DICT, 40, 0)))
+ else if (zi->registerState == -1)
+ logf (LOG_LOG, "Reading register using state %d pid=%ld", state,
+ (long) getpid());
+ else
+ logf (LOG_LOG, "Register has changed state from %d to %d",
+ zi->registerState, state);
+ zi->registerChange = lastChange;
+ if (zi->records)
+ {
+ dict_close (zi->wordDict);
+ is_close (zi->wordIsam);
+ rec_close (&zi->records);
+ }
+ bf_cache (state);
+ zi->registerState = state;
+ zi->records = rec_open (0);
+ if (!(zi->wordDict = dict_open (FNAME_WORD_DICT, 40, 0)))